function GetOpenFileNameMulti(const Prompt: String; var FileNameList: TStrings; const InitialDirectory, Filter, DefaultExtension: String): Boolean;
Displays a dialog box that enables the user to select one or more existing file(s). Returns True if the user selected a file, False otherwise. The name of the selected file(s) is returned in the FileNameList list.
An example Filter: 'Text files (*.txt)|*.txt|All files (*.*)|*.*'
var FileNameList: TStrings; begin // Create the list FileNameList := TStringList.Create; try if GetOpenFileNameMulti('', FileNameList, '', 'Text Documents (*.txt)|*.txt|All Files|*.*', 'txt') then begin // Successful; user clicked OK // FileNameList contains the selected filename(s) end; finally FileNameList.Free; end; end;