home *** CD-ROM | disk | FTP | other *** search
- /*
- ** GETFILES_Examples.adpro
- **
- ** $VER: GETFILES_Examples.adpro 1.1.0 (26.10.93)
- **
- ** This ARexx program is an example of how to use the GETFILES command.
- **
- ** This script requires ADPro v2.5.0 (or higher).
- **
- ** Copyright © 1991-1993 ASDG, Incorporated
- ** All Rights Reserved
- */
-
-
- ADDRESS "ADPro"
- OPTIONS RESULTS
-
- NL = '0A'X
- SQ = '27'X
- DQ = '22'X
- TRUE = 1
- FALSE = 0
-
- OrdinalWords = "first second third fourth fifth sixth"
- OrdinalMax = 6
-
- ADPRO_TO_FRONT
-
- GETFILES '"Select A Few Files"'
- IF (RC ~= 0) THEN
- EXIT 0
-
- TheFiles = ADPRO_RESULT
- NumberOfFiles = WORDS( TheFiles )
- FileCounter = 1
-
- DO WHILE (FileCounter <= NumberOfFiles)
- IF (FileCounter > OrdinalMax) THEN
- String = "Another file you picked is:" || NL
- ELSE
- String = "The" WORD( OrdinalWords, FileCounter ) "file you picked is:" || NL
- String = String || WORD( TheFiles, FileCounter )
- OKAY1 String
- FileCounter = FileCounter + 1
- END
-
- EXIT 0
-