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:
    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?

    Saturday, July 29, 2006 9:21 PM


  • Does this help?


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


    Saturday, July 29, 2006 9:30 PM

All replies