home *** CD-ROM | disk | FTP | other *** search
- /* more (REXX) - More command using FReq as a file requester */
-
- /* This program assumes you have the More command located in your
- SYS:Utility directory */
-
- if ~(Show('P', 'FileRequester')) then
- do
- ADDRESS COMMAND "Run >NIL: DEVS:Freq"
- ADDRESS COMMAND "WaitForPort FileRequester"
- if ~(Show('P', 'FileRequester')) then
- do
- say "UnAble to Load FileRequester"
- exit
- end
- end
-
- OPTIONS RESULTS
- ADDRESS "FileRequester"
- 'SetPattern' /* clear some defaults */
- 'SetFileName'
- more = "TRUE"
- do while more = "TRUE"
- 'SetTitle Select a Document to READ'
- 'DisplayDef'
- 'GETFILENAME'
- if (RC = 0) then
- ADDRESS COMMAND "SYS:Utility/More" '"' || Result || '"'
- else
- more = "FALSE"
- end
- exit 0
-