View Single Post
  #2 (permalink)  
Old May 17th, 2007, 10:28 PM
dparsons dparsons is offline
Wrox Author
Points: 12,827, Level: 49
Points: 12,827, Level: 49 Points: 12,827, Level: 49 Points: 12,827, Level: 49
Activity: 15%
Activity: 15% Activity: 15% Activity: 15%
 
Join Date: Oct 2005
Location: Akron, Ohio, USA.
Posts: 4,029
Thanks: 1
Thanked 42 Times in 42 Posts
Send a message via AIM to dparsons
Default

You can't do this. You cant do, for example:

for i=0 to 5
 Dim DynamicVariablei
next

In this case, this will create a variable named DynamicVariablei and not DynamicVariable0, DynamicVariable1, etc.

Variable values are not evaluated in a varible declartion, and this makes sense.

Why can't you use an array?

for i=0 to ubound(myArray)
 Response.redirect "www.mydoamin.com/page.asp?var1=" + myArray(i)
next

That would work just fine.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========
Reply With Quote