Delete all Groups

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

fi99ggb
Posts: 26
Joined: Tue Jul 02, 2019 4:05 am

Delete all Groups

Postby fi99ggb » Tue Jul 02, 2019 8:35 am

Hello

Is there a quick way to delete all group objects from my WF without specifying the name of the groups?

Thanks
George

EViews Matt
EViews Developer
Posts: 583
Joined: Thu Apr 25, 2013 7:48 pm

Re: Delete all Groups

Postby EViews Matt » Tue Jul 02, 2019 8:51 am

Hello,

In two steps, you can retrieve the names of all the group objects and then delete them en masse. In a program,

Code: Select all

%tmp = @wlookup("*", "group) delete %tmp
Or from the command window,

Code: Select all

string tmp = @wlookup("*", "group) delete {tmp} tmp

fi99ggb
Posts: 26
Joined: Tue Jul 02, 2019 4:05 am

Re: Delete all Groups

Postby fi99ggb » Tue Jul 02, 2019 9:17 am

Very clean. Thank you.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests