Page 1 of 1
Close *.prg-files via code
Posted: Sat Sep 17, 2011 10:10 am
by johansamuelsson
I edit the EViews program in an additional text editor. When you double-click on the prg-file opens the program in EViews internal editor. It would be great if you could control this in the "Options" or if the code was able to close the program files, for example something like "close @prg"
Sincerely, Johan
Re: Close *.prg-files via code
Posted: Sat Sep 17, 2011 10:19 am
by EViews Gareth
I'm not sure what you're getting at here.
If you simply want Windows to not associate a .prg file with EViews, then change that setting in Windows.
Re: Close *.prg-files via code
Posted: Tue Sep 20, 2011 1:05 pm
by johansamuelsson
Well there's a solution, but I like to kick-start programs via Windows Explorer (double click) or for that matter via a batch file, or via my external editor. But I do not want to open the prg file when I call it, just execute it.
This works in the command window by using, for example, "exec c:\temp\temp.prg". A run through an external program is matched in EViews as "run c:\temp\temp.prg", with an open prg file in EViews as a result. But maybe the easiest would be if you could close the prg files in code by example "close @prg"
Sincerely, Johan
Re: Close *.prg-files via code
Posted: Thu Jul 19, 2012 1:37 pm
by fmramos
Hi Gareth!
This topic remind me an old doubt: is there a way to order a .prg to auto close/close itself at the end of the routine?
Tks in advance,
Fabio
Re: Close *.prg-files via code
Posted: Thu Jul 19, 2012 1:42 pm
by EViews Gareth
No.