err = RXMSG('MyWindow')
CALL RXSAY('RXMSG() returned '||err)
CALL RXERR('NUM|DISPLAY')
err = RXMSG('MyWindow')
CALL RXSAY('RXMSG() returned '||err)
CALL RXERR('', '')
err = RXMSG('MyWindow')
CALL RXSAY('RXMSG() returned '||err)
CALL RXERR('NUM', '')
err = RXMSG('MyWindow')
CALL RXSAY('RXMSG() returned '||err)
SIGNAL ON ERROR NAME bad1
CALL RXERR('ERROR|DISPLAY', '~')
err = RXMSG('MyWindow')
CALL RXSAY("REXX Dialog didn't raise ERROR!")
resume1:
SIGNAL ON SYNTAX NAME bad2
CALL RXERR('SYNTAX', '~')
err = RXMSG('MyWindow')
CALL RXSAY("REXX Dialog didn't raise SYNTAX!")
resume2:
SIGNAL ON SYNTAX NAME bad3
CALL TIME('A')
EXIT
bad2:
CALL CONDITION('M')
SIGNAL resume2
bad3:
CALL CONDITION('M')
EXIT
bad1:
SIGNAL resume1 |