ADDRESS null
OPTIONS 'TRAP'
SIGNAL ON HALT
SIGNAL ON SYNTAX
SIGNAL ON ERROR
CALL RXERR('ERROR|DISPLAY')
rxtype.1 = 'RADIO'
rxflags.1 = 'REPORT'
rxlabel.1 = '1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|Pick one'
rxval.1 = '1'
rxpos.1 = '4 7 20'
rx = ''
CALL RXCREATE('RX', 1, 'RXSET() VALUE -- buttons', 'NOCLOSE')
more:
CALL RXMSG()
IF rxid == '' THEN SIGNAL HALT
IF rxsubid > 15 THEN rxsubid = 0
CALL RXSET(, 'VALUE', 1, 1, rxsubid+1)
SIGNAL more
syntax:
CALL RXSAY(CONDITION('D') || '0D0A0D0A'x || SOURCELINE(sigl),,'Error '||condition('E')||' at line '||sigl)
halt:
error:
CALL RXMSG(,'END')
EXIT
|