InputFile() ![]()
Prompts the user with a directory listing and allows a file name to be specified.
Syntax
InputFile([<cExtension>], [<lMustExist>], [<cPath>], [<cTitle>])
Arguments
<cExtension> --> The optional file extension to limit the display listing to.
<lMustExist> --> If TRUE is passed, the specified file must exist on the system at the specified location.
<cPath> --> The optional path to point the directory listing to.
<cTitle> --> Pass this character string to optionally specify the window title to appear for the directory listing.
Description
Displays a common dialog box listing available files to select from.
Returns
The file name selected or an empty character string ("") if no file was selected.
Example
Declare MyFile Type Character
* List text files only
MyFile := InputFile('TXT', TRUE)
Echo("Selected file: " + MyFile)
____________________________
Related Topics: