FileTitle Property (ACommonDialog)

Returns the name (without the path) of the file to open or save.

Syntax

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.

Comments

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.

Example

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

Applies to

ACommonDialog

See Also

FileName, InitialDir, OpenOptions, SaveAsOptions, ShowSaveAs