none
for next loop decreasing RRS feed

  • Question

  • Is there a way to make a for next loop that runs from high to low?

    I am using a loop to figure out if a textbox contains a string. A sample string would be:
    "time304"
    now the loop finds it but only as "time3".

    I am using Contains("time" & n) where n is the integer that the loop is using.
    Can I make the loop run from 400 to 0?

    Thanks
    Saturday, July 29, 2006 9:21 PM

Answers

  • Does this help?

     



    Dim counter as integer
    For counter = 400 to 1 Step -1
       'Do stuff
    Next

     

    Saturday, July 29, 2006 9:30 PM
    Moderator

All replies