Return to Snippet

Revision: 5952
at April 15, 2008 20:27 by neal_grosskopf


Initial Code
articlesRev = array( _
"array item 0", _
"array item 1", _
"array item 2", _
"array item 3" _
)

Dim articles()
ubnd = UBound(articlesRev)
Redim articles(ubnd)
for i = 0 to ubnd
 articles(ubnd - i) = articlesRev(i)
next

for i=0 to ubound(articles)
 response.Write(articles(i)&"<br>")
next

Initial URL
http://www.nealgrosskopf.com/tech/thread.asp?pid=10

Initial Description
ASP does not have a built in function to reverse or sort array like other languages. Find out how to do it.

Initial Title
Reversing Arrays in ASP

Initial Tags
array, ASP

Initial Language
ASP