/ Published in: ASP

ASP does not have a built in function to reverse or sort array like other languages. Find out how to do it.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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
URL: http://www.nealgrosskopf.com/tech/thread.asp?pid=10
Comments
