Link to home
Start Free TrialLog in
Avatar of denam
denam

asked on

counting backwards in a vbscript "for next" loop (urgent)

How do you loop backwards in a vbscript for next loop?
This doesn't work when you start with the larger number as
i do here:

for iYear = 1999 to 1995
      Response.Write ( iYear & "<br>")
next

Thanks,
Dena
ASKER CERTIFIED SOLUTION
Avatar of boycey19
boycey19

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of denam
denam

ASKER

thanks Boycey.

I misread the doc on it.
didn't realize you needed "step" as well as the "-1"