Alternating output

Results 1 to 2 of 2

Thread: Alternating output

  1. #1
    Join Date
    Dec 1969

    Default Alternating output

    I&#039;m not exactly sure how to accomplish the following output.<BR><BR>I have a loop that displays five items. I want the items to be displayed in alternating formats.<BR><BR>For example:<BR><BR>Title-----------------------------Picture<BR>Description<BR><BR>Picture----------------------------Title<BR>-----------------------------Description<BR><BR>Title-----------------------------Picture<BR>Description<BR><BR>Picture----------------------------Title<BR>-----------------------------Description<BR><BR>Title-----------------------------Picture<BR>Description<BR><BR>Any advice on how to do this?

  2. #2
    Join Date
    Dec 1969

    Default Why bother?

    If it&#039;s only 5 items, I&#039;d be tempted to not bother with the loop.<BR><BR>But if you insist:<BR><BR>&#060;%<BR>titleFirst = True<BR><BR>Do Until RS.EOF<BR> If titleFirst Then<BR> ... first format ...<BR> Else<BR> ... other format ...<BR> End If<BR> titleFirst = Not titleFirst<BR> RS.MoveNext<BR>Loop<BR>%&#062;<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts