Simple loop

Results 1 to 2 of 2

Thread: Simple loop

  1. #1
    Join Date
    Dec 1969

    Default Simple loop

    can someone tell my the correct way of doing a loop. <BR><BR>I want to loop though a number of time untill a condition is met. e.g x = 5<BR><BR>i can&#039;t remmeber the syntax<BR><BR>thanks..

  2. #2
    Join Date
    Dec 1969

    Default RE: Simple loop

    recordset is called oRS<BR><BR>&#060;%Do untill count=5 %&#062;<BR><BR>&#060;% =oRS("Name")%&#062;<BR><BR>&#060;% =oRS("Address")%&#062;<BR>&#060;% count = count +1 %&#062;<BR><BR>&#060;%oRS.MoveNext<BR>Loop %&#062;<BR><BR>Now the records will be counted and when count = 5 the prossess will stopp!! Is this what you mean?<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