DO ON ERROR UNDO, LEAVE:
FIND Customer WHERE CustNum = 1000. /* Raises ERROR and execution goes to FINALLY block before the LEAVE option executes */ MESSAGE "This message never appears because of ERROR condition." VIEW-AS ALERT-BOX BUTTONS OK. FINALLY: MESSAGE "Inside FINALLY block." VIEW-AS ALERT-BOX BUTTONS OK. /* LEAVE DO block here */ END FINALLY. END. /* DO */ MESSAGE "Out of DO block." VIEW-AS ALERT-BOX BUTTONS OK. |