ADDRESS null
OPTIONS 'TRAP'
SIGNAL ON HALT
SIGNAL ON SYNTAX
SIGNAL ON ERROR
CALL RXERR('ERROR|DISPLAY')
rxtype.1 = 'LIST'
rxflags.1 = 'REPORT|MULTIPLE'
rxlabel.1 = '|'
rxval.1 = 'STRS'
rxpos.1 = '1 10 10 90 6'
strs.1 = 'all'
strs.2 = 'none'
strs.3 = 'something'
strs.4 = 'more'
strs.5 = 'more stuff'
strs.6 = ''
rx = ''
CALL RXCREATE('RX', 1, 'RXSET() VALUE -- MULTIPLE LIST', 'NOCLOSE')
DO FOREVER
CALL RXMSG()
IF rxid == '' THEN SIGNAL HALT
IF strs.0 > 0 THEN DO
IF strs.0.1 = 'all' THEN DO
CALL RXSAY('Selecting all...')
CALL RXSET(, 'VALUE', '', 1, 1)
END
IF strs.0.1 = 'none' THEN DO
CALL RXSAY('Deselecting all...')
CALL RXSET(, 'VALUE', , 1, 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
|