ADDRESS null
OPTIONS 'TRAP'
SIGNAL ON HALT
SIGNAL ON SYNTAX
SIGNAL ON ERROR
CALL RXERR('ERROR|DISPLAY')
rxtype.1 = 'DROP'
rxflags.1 = 'REPORT|SORT'
rxlabel.1 = '|'
rxval.1 = 'STRS'
rxpos.1 = '1 5 5 90 6'
strs.1 = 'all'
strs.2 = 'none'
strs.3 = 'something'
strs.4 = 'more'
strs.5 = 'del'
strs.6 = ''
rx = ''
CALL RXCREATE('RX', 1, 'RXSET() ADD/DELETE - DROP', 'NOCLOSE')
DO FOREVER
CALL RXMSG()
IF rxid == '' THEN SIGNAL HALT
IF strs.0 = 'del' THEN DO
CALL RXSAY('Deleting list...')
CALL RXSET(, 'DELETE', , 1, 1)
END
ELSE IF strs.0 = 'add' THEN DO
CALL RXSAY('Creating list...')
CALL RXSET(, 'HIDE', , 1, 1)
CALL RXSET(, 'DELETE', , 1, 1)
DO i = 1 TO 4
CALL RXSET(, 'ADD', 'Item' i, 1, 1)
END
CALL RXSET(, 'SHOW', , 1, 1)
END
ELSE DO
CALL RXERR(,'~!VALUE')
IF RXSET(, 'VALUE', strs.0, 1, 1) \= '' THEN DO
CALL RXSET(, 'ADD', strs.0, 1, 1)
CALL RXSET(, 'VALUE', strs.0, 1, 1)
END
CALL RXERR(,'!VALUE')
END
END
syntax:
CALL RXSAY(CONDITION('D') || '0D0A0D0A'x || SOURCELINE(sigl),,'Error '||condition('E')||' at line '||sigl)
halt:
error:
CALL RXMSG(,'END')
EXIT
|