I have a question so basic that I suspect everyone takes it for
granted, as i cannot google the answer. Anyone here can probably answer
it!
I want to create a bunch of variable at runtime, but I don't know
beforehand how many. When the program has calculated the number of
variables (N) that I need, I pass N to a loop. I then want the loop to
generate N new variables. I want it to name each variable in turn, so
I'll end up with variable named something like this:
var1
var2
var3
etc.
How can I create a variable name that concatenates a standard string
(Var in this case) with an integer-converted-to-a-string?
Thanks!
-fool