ADDRESS null
OPTIONS 'TRAP'
SIGNAL ON HALT
SIGNAL ON SYNTAX
SIGNAL ON ERROR
CALL RXERR('ERROR|DISPLAY')
rxtype.1 = 'ENTRY'
rxflags.1 = 'REPORT'
rxlabel.1 = 'Type Here:|'
rxval.1 = 'STRS'
rxpos.1 = '1 10 10 90'
strs.1 = 'some stuff'
rx = ''
CALL RXCREATE('RX', 1, 'RXSET() VALUE -- ENTRY', 'NOCLOSE|SIZE')
DO FOREVER
CALL RXMSG()
IF rxid == '' THEN SIGNAL HALT
CALL RXSET(, 'VALUE', 'hello', 1, 1)
END
syntax:
CALL RXSAY(CONDITION('D') || '0D0A0D0A'x || SOURCELINE(sigl),,'Error '||condition('E')||' at line '||sigl)
halt:
error:
CALL RXMSG(,'END')
EXIT
|