Page 1 of 1

Calling program from out-/inside of EViews?

Posted: Thu Apr 19, 2012 12:46 am
by paues
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.

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

Posted: Thu Apr 19, 2012 7:41 am
by EViews Gareth
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).