ADDRESS null
OPTIONS 'TRAP'
SIGNAL ON HALT
SIGNAL ON SYNTAX
SIGNAL ON ERROR
CALL RXERR('ERROR|DISPLAY')
rxtype.1 = 'MENU'
rxlabel.1 = ''
rxflags.1 = ''
rx = ''
CALL RXCREATE('RX', 1, 'Main Window', 'NOCLOSE')
menu1.0 = 'File'
menu1.1 = 'Open|2'
menu1.2 = 'Save'
menu1.3 = ''
menu1.1.1 = 'All'
menu1.1.2 = 'Excerpt'
menu2.0 = 'Edit'
menu2.1 = 'Cut'
menu2.2 = 'Copy'
menu2.3 = 'Paste'
menu2.4 = ''
CALL RXSET(, 'ADD', 'HELP|MENU1|MENU2', 1)
DO FOREVER
CALL RXMSG()
IF rxid == '' THEN SIGNAL HALT
CALL RXSET(, 'DELETE', , 1)
END
syntax:
CALL RXSAY(CONDITION('D') || '0D0A0D0A'x || SOURCELINE(sigl),,'Error '||condition('E')||' at line '||sigl)
halt:
error:
CALL RXMSG(,'END')
EXIT
|