InitialDir Property

Applies to TestComplete 15.10, last modified on December 15, 2021

Determines the directory to be displayed when the dialog opens.

Declaration

componentObj.InitialDir
Read-Write Property String
componentObj     One of the user forms components listed in the Applies To section  

Applies To

The property applies to the following components:

TOpenDialog, TSaveDialog

Description

The InitialDir property specifies the path to the directory that is displayed when the dialog opens. If the directory does not exist or a value is not specified, then the dialog displays either the current working directory or the My Documents directory, depending on the Windows version.

Property Value

A string value that contains the initial directory path.

Highlight search results