Files Property

Applies to TestComplete 14.0, last modified on January 23, 2019

Contains a list of files that are selected by the dialog.

Declaration

componentObj.Files
Read-Write Property A TStrings object
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 Files property provides access to a list of strings that contains the paths to files selected in the dialog. To let users select multiple file names, enable the ofAllowMultiSelect dialog option. Using methods and properties of the returned TStrings object, you can handle the file list and access any single file path.

Property Value

A TStrings object that lets you work with the list of selected files.

Remarks

If the user closes the dialog with the Cancel button, the Files property restores the value it had before the dialog was displayed.

See Also

TStrings Object
FileName Property

Highlight search results