Error trapping an execute statement

General development discussion.

Moderators: Susan Smith, admin, Gabriel

Post Reply
gtisdale
Posts: 218
Joined: Sun Jun 07, 2009 7:54 am
Location: Concord, Massachusetts
Contact:

Error trapping an execute statement

Post by gtisdale »

I am trying to trap an error in an executte statement. Most of the time it seems that I am able to do this, but if the error has to do with a misdimensiond variable the system does not respod to an error redirection and just sits. It is not hung becasue I can do stats stacks clear prog go line number etc.

Attached is a sample p[rogram that shows the error. I dimension e(10,5) but refer to it as e(1) in the execute statement. I'd like to be able to inform the operator of the error (this is in a report writer) and return to the enter line. The execute statement is used to validate the code being entered.

Thanks for the help

FNGeorge
Attachments
testerr.br
(764 Bytes) Downloaded 396 times
Post Reply