Getting groups into strings
Posted: Fri Jun 25, 2010 4:18 am
I have a group and I want to get it into a string so that I can loop through the elements of the group. e.g. something like this:
group test1 x1 x2 x3
string test2="test1"
for %t {test2}
series {%t}=1
next
but I can't use a group to create a string (i.e. string test2="test1" doesn't work it creates a string with test1 in it rather than the elements of test1). Is there anyway that I can get this to work or any otehr way that I can loop through the elements of a group?
group test1 x1 x2 x3
string test2="test1"
for %t {test2}
series {%t}=1
next
but I can't use a group to create a string (i.e. string test2="test1" doesn't work it creates a string with test1 in it rather than the elements of test1). Is there anyway that I can get this to work or any otehr way that I can loop through the elements of a group?