use control variable when naming a string variable
Posted: Thu Sep 10, 2009 10:13 am
Hello,
I would like to have a for loop where my control variable is used in the name of strings that I define. The documentation mentions how to do this when naming series, but not when defining names for strings.
I have tried the following, but get errors:
for !i = 1 to 3
%stringname_!i = @right(mygroup.@seriesname(!i+1),6)
alpha string_!i = @insert(%stringname_!i,"xyz",2)
next
Thanks in advance,
-cap
I would like to have a for loop where my control variable is used in the name of strings that I define. The documentation mentions how to do this when naming series, but not when defining names for strings.
I have tried the following, but get errors:
for !i = 1 to 3
%stringname_!i = @right(mygroup.@seriesname(!i+1),6)
alpha string_!i = @insert(%stringname_!i,"xyz",2)
next
Thanks in advance,
-cap