ADDRESS null
OPTIONS 'TRAP'
SIGNAL ON HALT
SIGNAL ON SYNTAX
SIGNAL ON ERROR
CALL RXERR('ERROR|DISPLAY')
rxtype.1 = 'SPIN'
rxflags.1 = 'REPORT'
rxlabel.1 = 'X:| Y:|Position'
rxval.1 = '0 0'
rxinfo.1 = '-40 40 -10 10'
rxpos.1 = '1 8 20 40'
rxtype.2 = 'LIST'
rxflags.2 = 'ALLNONE|MULTIPLE'
rxlabel.2 = 'One:|Listbox'
rxval.2 = 'ONE'
one.1 = 'Hello'
one.2 = 'Hi'
one.3 = 'Bye'
one.4 = 'Goodbye'
one.5 = ' '
rxpos.2 = '1 100 40 110 3'
rx = ''
CALL RXCREATE('RX', 2, 'RXSET() MOVE', 'NOCLOSE')
DO FOREVER
CALL RXMSG()
IF rxid == '' THEN SIGNAL HALT
IF rxsubid == '1' THEN ,
CALL RXSET(, 'MOVE', rxval.1, 2, 1)
ELSE ,
CALL RXSET(, 'MOVE', 0 rxval.1, 2, 1)
END
syntax:
CALL RXSAY(CONDITION('D') || '0D0A0D0A'x || SOURCELINE(sigl),,'Error '||condition('E')||' at line '||sigl)
halt:
error:
CALL RXMSG(,'END')
EXIT
|