Changing names of objects in a group
Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt
Changing names of objects in a group
if a have a group g_base which contains X1_base X2_base X3_base etc, is there an easy way to create a group G_ALT from it which is comprised of X1_alt X2_alt X3_alt etc?
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13349
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Changing names of objects in a group
Code: Select all
wfcreate u 100
for !i=1 to 3
series x{!i}_base
series x{!i}_alt
next
group g_base *base
group g_alt
%list = g_base.@members
for %j {%list}
%prefix = @left(%j, @instr(%j, "_"))
%new = %prefix + "alt"
g_alt.add {%new}
next
Follow us on Twitter @IHSEViews
Re: Changing names of objects in a group
Could I use this to create a group where the member are just x1, X2, X3 etc rather than X1_alt, X2_alt, X3_alt etc?
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13349
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Changing names of objects in a group
Yes, just change the %new line
Follow us on Twitter @IHSEViews
Re: Changing names of objects in a group
change it to what?
Who is online
Users browsing this forum: No registered users and 70 guests