Calling program from out-/inside of EViews?

For questions regarding programming in the EViews programming language.

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

paues
Posts: 218
Joined: Fri Apr 15, 2011 7:16 am
Location: Stockholm, Sweden

Calling program from out-/inside of EViews?

Postby paues » Thu Apr 19, 2012 12:46 am

Is there any way to determine in code whether the active program/session has been called from inside of EViews (e.g. was started through the menus or a command such as "exec file.prg") or from outside of EViews (e.g. was started by double-clicking a .prg file in Explorer)?

The reason I am wondering is that I would like EViews to close after executing a file if, and only if, that file has been called through Explorer.

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

Re: Calling program from out-/inside of EViews?

Postby EViews Gareth » Thu Apr 19, 2012 7:41 am

Not that I can think of.

You could, I suppose, use a program argument, and then every time you run it from within EViews pass in that argument that tells the program not to exit. (or vice versa).


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests