Setting a counter and stopping a loop.

Results 1 to 3 of 3

Thread: Setting a counter and stopping a loop.

  1. #1
    Bookem Guest

    Default Setting a counter and stopping a loop.

    I have set up a website using ASP to bring in images and text using only a couple lines of code and a loop. The problem that I am having is all of the images and text in the database is coming in and I want to set a counter and stop the loop at 6. How do I do this?

  2. #2
    Join Date
    Dec 1969
    Posts
    1,019

    Default RE: Setting a counter and stopping a loop.

    dim counter<BR>do while not &#039put your condition here<BR>counter=counter+1<BR>if counter=6 then<BR> Exit do &#039Breaks a do<BR>&#039 also: Exit For<BR>end if

  3. #3
    bookem Guest

    Default Thank you Leo

    Thank you for the tip Leo.

Posting Permissions

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