Returns the name (without the path) of the file to open or save.
Object.FileTitle [ = sFileTitle ]
The FileTitle property syntax has the following parts:
Name |
Type |
Description |
Object |
ACommonDialog |
ACommonDialog control |
sFileTitle |
BString |
The name (without the path) of the file to open or save. |
When the user selects a file and clicks OK in the File dialog box, the FileTitle property takes a value that can then be used to open or save the selected file.
The following example will retrieve the filetitle:
sFileTitle=cdlg1.FileTitle
If the file and its path are c:\mydir\myfile.txt, the following example will set the filetitle:
cdlg1.FileTitle=myfile
FileName, InitialDir, OpenOptions, SaveAsOptions, ShowSaveAs