delete all valmap objects

For questions regarding programming in the EViews programming language.

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

bcchen
Posts: 31
Joined: Tue May 02, 2017 8:34 am

delete all valmap objects

Postby bcchen » Fri Jan 03, 2020 3:18 pm

Hi EViews gurus,

Is there a way in programming to delete all the valmaps objects with no naming rules all at once? also, same for tables?

Thanks in advance.
BC

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13315
Joined: Tue Sep 16, 2008 5:38 pm

Re: delete all valmap objects

Postby EViews Gareth » Fri Jan 03, 2020 7:40 pm

Use the @wlookup function to return a list of all objects of a certain type, then use that list to delete.

Code: Select all

%vallist = @wlookup("*", "valmap")
delete {%vallist}
Follow us on Twitter @IHSEViews

bcchen
Posts: 31
Joined: Tue May 02, 2017 8:34 am

Re: delete all valmap objects

Postby bcchen » Thu Jan 09, 2020 11:49 am

Thank you! That works!
So I guess for tables can I changes "valmap" to "table"?

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13315
Joined: Tue Sep 16, 2008 5:38 pm

Re: delete all valmap objects

Postby EViews Gareth » Thu Jan 09, 2020 11:50 am

aye
Follow us on Twitter @IHSEViews


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 25 guests