[FONT=courier new]DEFINE VARIABLE iCust AS INTEGER.
ASSIGN iCust = 5000.
FIND Customer WHERE CustNum = iCust. /* Will fail */
/* The associated block for this CATCH block is the main block of the .p */
CATCH eSysError AS Progress.Lang.SysError:
MESSAGE eSysError:GetMessage(1) VIEW-AS ALERT-BOX BUTTONS OK.
DELETE OBJECT eSysError.
END CATCH.[/FONT]