FileDialog.FileName Property
FileDialog.FileName (read-write, String)
The inital name of the file to show in the dialog's file name field, and the complete path/name of the file that was selected by the user
Syntax
FileDialog.FileName [= String]
The property syntax has these parts:
Part |
Description |
Value (String) |
The inital name of the file to show in the dialog's file name field, and the complete path/name of the file that was selected by the user |
Remarks
If the fdAllowMultiSelect flag is set, and if the user selects more than one file, the FileName property returns the path to the current directory followed by the file names of the selected files. The directory and file name strings are separated by null characters, with an extra null character after the last file name. To use this feature, you need to split the FileName string at the null characters. In VBScript or JScript, use the split() function, specifying the null character to split on. In VBScript, the null character is Chr(0)
, and in JScript, it is \000
.
Copyright © 2000-2016, Robert B. Denny, Mesa, AZ