DefaultExt Property

Applies to TestComplete 15.69, last modified on November 13, 2024

Specifies the default extension for the selected file(s).

Declaration

componentObj.DefaultExt
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 DefaultExt property specifies the extension to be appended to the selected file(s) if it does not have an extension. For the TSaveDialog component, this means that the user can only input the file's name and it will be automatically appended with the default extension.

Property Value

A string value that contains the default extension for the selected file(s)

Remarks

The string should contain no more than three characters. Specify the extension without the period (.) character that separates a file name from the extension.

See Also

Filter Property
FileName Property

Highlight search results