Unknown2004-12-30 08:17:13
Is it possible to use a variable value as part of another variables name?
For instance, I have @test1, @test2, @test3, etc and also @n (which I want to use to specify the numerical part of the @test names)
But "#show @test@n" only displays the value of @n.
Any ideas?
For instance, I have @test1, @test2, @test3, etc and also @n (which I want to use to specify the numerical part of the @test names)
But "#show @test@n" only displays the value of @n.
Any ideas?
Unknown2004-12-30 13:18:17
Use curly braces to force evaluation of the variable.
Not sure exactly what you're doing with these variables, but have you considered a string list or a record variable?
CODE
#show @{test@n}
Not sure exactly what you're doing with these variables, but have you considered a string list or a record variable?
Neale2004-12-30 13:51:11
Or an array.