Hi Everyone,
Im still pondering how I could construct a variable..
I'm in a loop...
WHILE (%i% < %LineCount% AND %spaceCount% < 2)
I read a line at a time from a file and store it in a temp
variable..
%tmpLineVal% = TextFile.GetLine ("%SrcDir%
\Menu\Games.txt", %i%)
Then I want to assign the value of %tmpLineVal% to
a different variable each time we loop, i.e.
("Game"+%i%) = Evaluate (%tmpLineVal%)
Then increase %i% and end while..
%i% = Evaluate ((%i%+1))
END WHILE
Does anyone have any idea how I can get this to work pretty please??? I'm wasting ages thinking about this, please help me!
%curGame% = Evaluate (("%"+Game+%i%+"%"))
// This just gives me a values of %Game1%, %Game2% not variables %Game1%, %Game2%.....
Thanks loads for any of your time..
Pete
Im still pondering how I could construct a variable..
I'm in a loop...
WHILE (%i% < %LineCount% AND %spaceCount% < 2)
I read a line at a time from a file and store it in a temp
variable..
%tmpLineVal% = TextFile.GetLine ("%SrcDir%
\Menu\Games.txt", %i%)
Then I want to assign the value of %tmpLineVal% to
a different variable each time we loop, i.e.
("Game"+%i%) = Evaluate (%tmpLineVal%)
Then increase %i% and end while..
%i% = Evaluate ((%i%+1))
END WHILE
Does anyone have any idea how I can get this to work pretty please??? I'm wasting ages thinking about this, please help me!
%curGame% = Evaluate (("%"+Game+%i%+"%"))
// This just gives me a values of %Game1%, %Game2% not variables %Game1%, %Game2%.....
Thanks loads for any of your time..
Pete
Comment