How to close a program

For questions regarding programming in the EViews programming language.

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

aleksey73
Posts: 7
Joined: Fri Jun 03, 2011 8:19 am

How to close a program

Postby aleksey73 » Mon Jun 06, 2011 6:03 am

Hi,
I was wondering how works the "close" command. I would like to close a program by using it, but I tried many ways and it never worked. Suppose my program is called "program", if i call
close program
or
close program.prg
it doesn't work... Does someone know how to make it works?
Thank you very much!

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

How to close a program

Postby EViews Gareth » Mon Jun 06, 2011 6:43 am

You cannot close a program.

jasmin
Posts: 19
Joined: Thu Jun 16, 2011 8:50 am

Re: How to close a program

Postby jasmin » Fri Jun 24, 2011 1:25 pm

I have similar issue. I have a program to recalculate some series. When I run the program (e.g. run program_a), it recalculates my series, but leaves the "program window" open on the screen. I just need my series updated, I do not need the whole program window opened on the screen. So each time I run a program, I need to manually close the “program window”. This is not a big deal, but it annoys. Is there a way how to suppress the “program window” from opening when I run the program?

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

Re: How to close a program

Postby EViews Gareth » Fri Jun 24, 2011 1:27 pm

Use exec rather than run.

jasmin
Posts: 19
Joined: Thu Jun 16, 2011 8:50 am

Re: How to close a program

Postby jasmin » Fri Jun 24, 2011 2:14 pm

Thanks, "exec" does exactly what I want, and I can now even run it directly from the Add-In menu; I love Eviews.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests