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 = 'Move:|X Position'
rxval.1 = 'TEXT'
rxpos.1 = '1 8 20 40'
text.1 = '150'
rxtype.2 = 'SPIN'
rxflags.2 = ''
rxlabel.2 = 'Width:|'
rxinfo.2 = '40 200'
rxval.2 = '64'
rxpos.2 = '1 110 10 70'
rx = ''
CALL RXCREATE('RX', 2, 'RXSET() MOVE', 'NOCLOSE')
DO FOREVER
CALL RXMSG()
IF rxid == '' THEN SIGNAL HALT
CALL RXQUERY(, 'SIZE', 'offset', 2, 1)
PARSE VAR offset . . offset .
CALL RXSET(, 'MOVE', text.1 - offset, 2, 1)
END
syntax:
CALL RXSAY(CONDITION('D') || '0D0A0D0A'x || SOURCELINE(sigl),,'Error '||condition('E')||' at line '||sigl)
halt:
error:
CALL RXMSG(,'END')
EXIT
|