[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Dialogs' (#lcl)

# TFileDialog.Files

Stores the names of files (or directories) selected using the dialog.

## Declaration

Source position: dialogs.pp line 166

`public property TFileDialog.Files : TStrings read FFiles;`

## Description

Files is a TStrings property used to store values selected using the file dialog. A TStringList instance is created and assigned to the property in the Create constructor.

Files is used in descendent classes, like TOpenDialog and TSelectDirectoryDialog, to store the directory or one or more file names chosen using the derived classes.

Use HistoryList to access the list of previous file or directory names used in the derived dialog classes.

## See also

TFileDialog.Create |  | Constructor for the class instance.
TOpenDialog |  | Implements a File / Open dialog used to select one or more files on the local file system.
TSelectDirectoryDialog |  | Implements a select directory dialog.
TStrings
TStringList