INPUT FROM VALUE, is it possible to supress or display custom text on error.

xscottehx

Member
quite new to progress,

Just wondering if it is possible to catch the error when looking for a file if it cant be found, then to leave the procedue or output my own message.

Thanks in advance!
 
If you are using OpenEdge 10.1C (5 years old) or higher:

Code:
INPUT FROM "abc".
 
CATCH e AS progress.lang.error:
    MESSAGE "uh oh:" e:GetMessage(1) VIEW-AS ALERT-BOX.
    DELETE OBJECT e. /* can be left out at 10.2B or higher */
END CATCH.
 
Back
Top