Leave Loop?

Results 1 to 2 of 2

Thread: Leave Loop?

  1. #1
    Curtis Guest

    Default Leave Loop?

    how do I get out of a while loop?<BR><BR>code:<BR><BR>Sub LoopShow()<BR>if oRs.eof then<BR>check = 1<BR>else <BR>check = 0<BR>end if<BR><BR>while not oRs.eof<BR>if counter = 9 then<BR>counter = 0<BR>&#039get out of while loop! &#060;here&#062;<BR>end if<BR>tnum = oRs.Fields.Item("ProbNum")<BR>%&#062;<BR>&#039disp lay stuff in table<BR>&#060;%<BR>oRs.movenext<BR>wend<BR>end sub<BR>%&#062;<BR><BR>- ok now.. that code was just to display 10 records at a time.. BUT after it displays 10 I want it to leave the while loop and recall the sub, so that the counter is set back to 0 again. Easier than checking for a multiple of 10 or whatever.. and easier than calling the sub in a for loop..<BR><BR>thanks

  2. #2
    Curtis Guest

    Default IGNORE Question.

    sorry. I decided not to do it that way.. and if I still do it, I&#039m going to some how recall the whole page instead of just the function.. because I have to redisplay the logos and stuff.. anyways.. it isn&#039t easy.. and I&#039ll probably leave it for now..

Posting Permissions

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