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 22'
rx = ''
CALL RXCREATE('RX', 1, 'Main Window', 'RESULT')
rx2type.1 = 'PUSH'
rx2flags.1 = 'REPORT'
rx2label.1 = 'One|Two|Three|Four|Choices'
rx2val.1 = ''
rx2pos.1 = '2 7 22'
rx2 = ''
CALL RXCREATE('RX2', 1, 'Child 1', 'RESULT|CHILD|MIN')
CALL RXMSG('RX2')
CALL RXSAY('"'||rxwind||'" woke us up.')
IF rxid == '' THEN DO
CALL RXSAY('"'||rxwind||'" closed.')
END
ELSE IF rxid == '0' THEN DO
CALL RXSAY('Pressed ENTER on "'||rxwind||'".')
END
ELSE DO
CALL RXSAY('Group #'||rxid||', Control #'||rxsubid||' ended "'||rxwind||'" window.')
END
CALL RXMSG(,'END')
EXIT
syntax:
CALL RXSAY(CONDITION('D') || '0D0A0D0A'x || SOURCELINE(sigl),,'Error '||condition('E')||' at line '||sigl)
halt:
error:
CALL RXMSG(,'END')
EXIT
|