array = RevArray(array)
Example Usage:
ASP Source Code:<% dim item for each item in RevArray( Array( 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 ) ) response.write item & "<BR>" next ' example returns: ' 13 ' 12 ' 11 ' 10 ' 9 ' 8 ' 7 ' 6 ' 5 ' 4 ' 3 ' 2 ' 1 %>
<% Private Function RevArray(byVal arrayinput) Dim i, ubnd Dim newarray() ubnd = UBound( arrayinput ) Redim newarray(ubnd) For i = 0 to UBound( arrayinput ) newarray( ubnd - i ) = arrayinput( i ) Next RevArray = newarray End Function %>