Show: Delphi C++
Display Preferences

Vcl.Dialogs.TOpenDialog.Files

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Files: TStrings read GetFiles;

C++

__property System::Classes::TStrings* Files = {read=GetFiles};

Properties

Type Visibility Source Unit Parent
property public
Vcl.Dialogs.pas
Vcl.Dialogs.hpp
Vcl.Dialogs TOpenDialog

Description

List of selected file names.

Files is a string list that contains each selected file name with its full directory path. (To let users select multiple file names, set the ofAllowMultiSelect flag in Options.) Use properties and methods for string lists to traverse this list of files and read individual items.

The example below assigns the list of files in Files to the Items property of a TListBox component.



ListBox1.Items.Assign(OpenDialog1.Files);



ListBox1->Items->Assign(OpenDialog1->Files);



See Also

Code Examples


Personal tools
In Other Languages
Previous Versions
Assistance