Hi there..
I am wondering if it is possible to interpolate the value of a
variable to reference a variable to gain its value.
For example:-
if I have a series of variables:-
var01
var02
var03
var04
(I would arrange them into an array, but they are being generated via
form input)
Let's say I wanted to access these in order using a loop, I would
quite like to use a counter variable that I can increment each time;
counterVar.
Ideally I would like to be able to access the variables using
something to the effect of:-
Console.Writeline(var + counterVar);
counterVar++
Console.Writeline(var + counterVar);
using PHP I would achieve this using $var{$counterVar}
(to give another example).
I hope someone can shed some light onto whether or not this is
possible.
Thanks in advance
Jason Dunbar