wfclose

For questions regarding programming in the EViews programming language.

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

javiersan
Posts: 184
Joined: Mon Jan 19, 2009 8:18 am

wfclose

Postby javiersan » Wed Jun 20, 2012 3:12 am

Hello,

Could it not be possible to allow wfclose to close a specific workfile (which applies if there are multiple ones opened) rather than the most recently active?

Say I have WF1 and WF2 workfiles opened, If I am in WF1 and I want to close WF2 and remain in WF1 I have to write:

wfselect WF2
wfclose
wfselect WF1

but say that WF2 never really opened because of an error in the program, if I do the sequence above it will trigger an error after the first instruction, it will close WF1 and then give an error because it can not wfselect WF1, and basically mess up the whole process, so I have to do:
wfselect WF2
%wf=@wfname
if %wfname="WF2" then
wfclose
endif
wfselect WF1

whereas a simple wfclose WF2 would be just soooo much simpler.


Thanks

Javier

Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests