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 = 'Example of RXFILE.|'
rxval.1 = ''
rxpos.1 = '1 7 6'
rx = ''
CALL RXCREATE('RX', 1, 'Main Window')
CALL RXMSG()
IF rxid == '' THEN EXIT
fn = 'file.rex'
extensions = 'REXX scripts (*.rex) | *.rex | All files (*.*) | *.*'
err = RXFILE('FN', 'MULTIPLE|HIDEREADONLY|EXISTING|PATH|DIR', 'Pick out a file', extensions)
IF err == "" THEN DO
DO i = 1 TO fn.0
CALL RXSAY(fn.i)
END
END
ELSE CALL RXSAY('User cancelled!')
EXIT
syntax:
CALL RXSAY(CONDITION('D') || '0D0A0D0A'x || SOURCELINE(sigl),,'Error '||condition('E')||' at line '||sigl)
halt:
error:
CALL RXMSG(,'END')
EXIT
|