Page 1 of 1

Getting groups into strings

Posted: Fri Jun 25, 2010 4:18 am
by neilblake
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?

Getting groups into strings

Posted: Fri Jun 25, 2010 8:21 am
by EViews Gareth
I'm not in the office to check, but I think you can use

Code: Select all

%s = group.@wmembers
Check the first few pages of the group entry in the Object Reference for it's string data members.