ADDRESS null
OPTIONS 'TRAP'
SIGNAL ON HALT
SIGNAL ON SYNTAX
SIGNAL ON ERROR
CALL RXERR('ERROR|DISPLAY')
rxtype.1 = 'PUSH'
rxflags.1 = 'REPORT'
rxlabel.1 = 'Time-Out|'
rxval.1 = ''
rxpos.1 = '1 7 6'
rxtype.2 = 'TEXT'
rxflags.2 = 'NOBORDER'
rxlabel.2 = '|'
rxpos.2 = '1 10 40 90'
rx = ''
CALL RXCREATE('RX', 2, 'Main Window', 'NOCLOSE')
DO FOREVER
CALL RXMSG()
IF rxid == '' THEN SIGNAL HALT
rx2type.1 = 'TEXT'
rx2flags.1 = 'NOBORDER'
rx2label.1 = ''
rx2pos.1 = '1 1 1'
rx2 = '1 1 0 0'
CALL RXCREATE('RX2', 1, 'Child 1')
CALL RXSET('RX2', 'HIDE')
CALL RXSET('RX2', 'TIME', 5000)
CALL RXSET(, 'VALUE', 'Timing Out...', 2, 1)
CALL RXMSG('RX2')
CALL RXSET(, 'VALUE', 'All Done!', 2, 1)
END
syntax:
CALL RXSAY(CONDITION('D') || '0D0A0D0A'x || SOURCELINE(sigl),,'Error '||condition('E')||' at line '||sigl)
halt:
error:
CALL RXMSG(,'END')
EXIT
|