Use an array!
Dim TheVariable[4]
For i = 1 to 5
TheVariable[i] = "blah value #" & i
Next
Response.Write "For example, the third value is " & TheVariable[2]
(Arrays are zero-based in vbscript, so the first element is 0, second is 1,
and so on.)
Ray at work
"@sh" <sp**@spam.com> wrote in message
news:dp**********@nwrdmz02.dmz.ncs.ea.ibs-infra.bt.com...
I'd like to create a series of variables created dynamically, example such
as this...
For i = 1 to 5
TheVariable & i = "blah"
Next
This would during the first loop create a variable called 'TheVariable1'
with a value of 'blah'. Is this possible as so far I'm getting syntax
errors?
Cheers!