delete all valmap objects

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, 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: 13600
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}

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: 13600
Joined: Tue Sep 16, 2008 5:38 pm

Re: delete all valmap objects

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

aye


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests