InitialDir Property (ACommonDialog)

Returns or sets the initial file directory.

Syntax

Object.InitialDir [ = sInitialDir ]

The InitialDir property syntax has the following parts:

 

Name

Type

Description

Object

ACommonDialog

ACommonDialog control

sInitialDir

BString

The initial file directory.

Comments

This property is used to specify the initial directory for an Open or Save As dialog. If this property is not specified, the current directory is used.

Example

The following example will set the initial file directory:

cdlg1.InitialDir="c:\\tests\\"

Applies to

ACommonDialog

See Also

FileName, FileTitle, OpenOptions, SaveAsOptions, ShowSaveAs