| Directives |
|
| Formats | 1. Create
File Box:
GET_FILE_BOX path$,dir$,window$[ex_list$[,def_ex$,]][,ERR=stmtref] 2. Check File Box: GET_FILE_BOX READ path$,dir$,window$[ex_list$[,def_ex$,]][,ERR=stmtref] 3. Write to File Box: GET_FILE_BOX WRITE path$,dir$,window$[ex_list$[,def_ex$,]][,ERR=stmtref] 4. Find Directory: GET_FILE_BOX DIRECTORY path$,dir$,window$ [,ERR=stmtref]
|
||||||||||||
| *Note* | GET_FILE_BOX is supported when you use WindX with UNIX file systems and supported calls to [WDX]. See [WDX] Direct Action to Client Machine. | ||||||||||||
| Description | Use the GET_FILE_BOX directive to display a standardized window for the user, allowing the entry or selection of a file in the system. | ||||||||||||
| Format 1 | Create
|
||||||||||||
| *Note* | The path$ variable will receive the full pathname of the file selected. Because its initial contents will be used as the default pathname, initialize it prior to executing this directive. | ||||||||||||
| Use this format to select a file. If the initial directory string is null, ProvideX uses the current directory. Use the form Description|*.XXX, to list standard file extensions. You can include multiple extensions, comma-delimited (with the last extension terminated by a comma). If desired, choose a character other than a comma to delimit each entry. ProvideX uses the last character in ex_list$ (the comma or your choice) as the delimiter. | |||||||||||||
| Format 2 | Check
Use the READ format to make sure that the file you want returned exists; e.g.,
|
||||||||||||
| Format 3 | Write
Use the WRITE format to save or rewrite the file. If you do this and a user selects a file that already exists, ProvideX will confirm that the file is to be overwritten prior returning to the program; e.g.,
This allows the user to have a filename with the default extension .RPT and gives the user a list of files of two typeseport files (*.RPT) and All files (*.*). |
||||||||||||
| Format 4 | Directory
Use the DIRECTORY format to return a directory name to the application. The system will only allow the user to select a directory starting with directory set in dir$. |