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
LVL 1
denamAsked:
Who is Participating?
 
boycey19Connect With a Mentor Commented:
for iYear = 1999 to 1995 step -1
Reponse.Write ( iYear & "<br>")
next

Is this for an ASP document???

Cause the 'Response' Object doesn't work on the client.

for iYear = 1999 to 1995 step -1
Document.Write ( iYear & "<br>")
next

Boycey

0
 
denamAuthor Commented:
thanks Boycey.

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

From novice to tech pro — start learning today.