Link to home
Start Free TrialLog in
Avatar of KimKing
KimKing

asked on

Classic ASP counter loop

I'm having trouble writing a simple script. I need to have a number of variables named like A0, A1, A2, A3, etc. for a shopping cart checkout. But I can't find the right syntax to join the "A" part with the number part. Here's some code that doesn't work:
<%
i=0
while i < 10
u=cstr(i)
A&u=i
i=i+1
wend
response.Write(A0)
%>
Thanks, Kim
ASKER CERTIFIED SOLUTION
Avatar of 2toria
2toria
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of sybe
sybe

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial