Page 1 of 1

try statement

Posted: Wed Jul 10, 2013 11:15 am
by lukevancleve
Whats the try statement in eviews?

ie:

try
shell .....
end try

Re: try statement

Posted: Wed Jul 10, 2013 11:19 am
by EViews Gareth
Do or do not, There is no try statement.

Re: try statement

Posted: Wed Jul 10, 2013 11:26 am
by lukevancleve
Do or do not, There is no try statement.
If my shell command returns an error code then there's nothing I can do to not have my program crash?

Re: try statement

Posted: Wed Jul 10, 2013 11:29 am
by EViews Gareth
The spawn command lets you set an EViews error if the exit code is not as expected. You could then test for whether an error has occured.