May 31, 2002 #1 MDEE Programmer Joined Oct 20, 2005 Messages 1 Location US Hi anybody, How can I display my ARRAY in reverse? Below displays it from then first element to the last. So I can I display it from last downto frist? FOR i = 0 to numFile response.write xxx(i) & "<br />" next
Hi anybody, How can I display my ARRAY in reverse? Below displays it from then first element to the last. So I can I display it from last downto frist? FOR i = 0 to numFile response.write xxx(i) & "<br />" next
May 31, 2002 #2 FesterSXS Programmer Joined Feb 4, 2002 Messages 2,196 Location GB try this: Code: FOR i = 0 to numFile Step -1 response.write xxx(i) & "<br />" next Tony http://www.phoenix-paints.co.uk/portfolio Upvote 0 Downvote
try this: Code: FOR i = 0 to numFile Step -1 response.write xxx(i) & "<br />" next Tony http://www.phoenix-paints.co.uk/portfolio
May 31, 2002 #3 FesterSXS Programmer Joined Feb 4, 2002 Messages 2,196 Location GB oops - large number first! Code: FOR i = 100 to 0 Step -1 response.write xxx(i) & "<br />" next Tony http://www.phoenix-paints.co.uk/portfolio Upvote 0 Downvote
oops - large number first! Code: FOR i = 100 to 0 Step -1 response.write xxx(i) & "<br />" next Tony http://www.phoenix-paints.co.uk/portfolio