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
<%
i=0
while i < 10
u=cstr(i)
A&u=i
i=i+1
wend
response.Write(A0)
%>
Thanks, Kim
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.