Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Is it possible to dynamically create variables in a script loop. I want to create a loop that based off the number of records in a table creates dimensions (i.e. DIM1, DIM2, DIM3, etc.).
Something like this? :
For vI = 1 to NoOfRows('myTable')
Let '$(DIM)'&'$(vI)' = 'static expression';
Next vI
Thanks,
Tyler
I figured it out:
For vI = 1 to NoOfRows('myTable')
set name = 'Dim$(vI)';
set '$(name)' = 'static expression';
Next vI
something more like this for the center of the loop probably:
set name = 'Dim' & $(vI);
set '$(name)' = 'static expression';
I figured it out:
For vI = 1 to NoOfRows('myTable')
set name = 'Dim$(vI)';
set '$(name)' = 'static expression';
Next vI