ADDRESS null
OPTIONS 'TRAP'
SIGNAL ON HALT
SIGNAL ON SYNTAX
SIGNAL ON ERROR
CALL RXERR('ERROR|DISPLAY')
rxtype.1 = 'LIST'
rxflags.1 = 'ALLNONE|MULTIPLE'
rxlabel.1 = 'Choices:|More:|List'
rxval.1 = 'STRS|PTRS'
rxpos.1 = '1 10 20 90 6'
strs.1 = 'all'
strs.2 = 'none'
strs.3 = 'something'
strs.4 = 'more'
strs.5 = 'more stuff'
strs.6 = ''
ptrs.1 = '1'
ptrs.2 = '2'
ptrs.3 = '3'
ptrs.4 = ''
rx = ''
CALL RXCREATE('RX', 1, 'Main Window', 'NOCLOSE|RESULT')
flag = 1
DO FOREVER
CALL RXMSG()
IF rxid == '' THEN SIGNAL HALT
IF rxid == '0' THEN DO
IF flag = 1 THEN DO
CALL RXSET(, 'HIDE', 1, 1, 1)
flag = 0
END
ELSE DO
CALL RXSET(, 'SHOW', 1, 1, 1)
flag = 1
END
END
END
syntax:
CALL RXSAY(CONDITION('D') || '0D0A0D0A'x || SOURCELINE(sigl),,'Error '||condition('E')||' at line '||sigl)
halt:
error:
CALL RXMSG(,'END')
EXIT
|