faqts : Computers : Programming : Languages : Asp : ASP/VBScript : Common Problems : Arrays

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

56 of 74 people (76%) answered Yes
Recently 10 of 10 people (100%) answered Yes

Entry

How can I loop through an array?

Jun 14th, 2000 05:44
unknown unknown, Phil Smith


Loop through an array with:

For i = LBound(MyArray) To UBound(MyArray)
    Case UCase(MyArray(i))
    Response.redirect(whereever(i+1).asp)
Next

So if you have items in your array you would have 5 pages to redirect 
to:

whereever1.asp
whereever2.asp
whereever3.asp
whereever4.asp
whereever5.asp



© 1999-2004 Synop Pty Ltd