Creates a dialog box, allowing the user to chose a drive, directory and file name and returns a FixStr value containing full path to the file.
GetOpenFileName([extention][,extentionInfo][,title][,preview]) |
The GetOpenFileName function syntax has these arguments:
Part | Description |
extention | Optional; Variant (String). File extentions separated with (|). |
extentionInfo | Optional; Variant (String). Describes extentions, specified in extention. Elements in extentionInfo are separated with (|). |
title | Optional. String expression, displayed in the title bar of the dialog box. If you omit title, the application name is placed in the title bar. |
preview | Optional; Boolean. Specifies whether Preview is turned on or off in the dialog box. The default value is False. |
Dim RetVal, Path Path = GetOpenFileName("exe|any", "Executable Files|Any Format", "MyTitle", False) RetVal = Shell(Path, 1) ' Run a application. |
See Also |
|