Close *.prg-files via code

For making suggestions and/or requests for new features you'd like added to EViews.

Moderators: EViews Gareth, EViews Moderator

johansamuelsson
Posts: 160
Joined: Thu Mar 03, 2011 10:07 pm
Contact:

Close *.prg-files via code

Postby johansamuelsson » Sat Sep 17, 2011 10:10 am

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

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

Re: Close *.prg-files via code

Postby EViews Gareth » Sat Sep 17, 2011 10:19 am

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.
Follow us on Twitter @IHSEViews

johansamuelsson
Posts: 160
Joined: Thu Mar 03, 2011 10:07 pm
Contact:

Re: Close *.prg-files via code

Postby johansamuelsson » Tue Sep 20, 2011 1:05 pm

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

fmramos
Posts: 113
Joined: Fri Sep 19, 2008 7:30 am
Location: Sao Paulo / Brazil
Contact:

Re: Close *.prg-files via code

Postby fmramos » Thu Jul 19, 2012 1:37 pm

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

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

Re: Close *.prg-files via code

Postby EViews Gareth » Thu Jul 19, 2012 1:42 pm

No.
Follow us on Twitter @IHSEViews


Return to “Suggestions and Requests”

Who is online

Users browsing this forum: No registered users and 25 guests