FileDialog

Properties:

CheckFileExist
DefaultExt
Directory
Filter
FilterIndex
FullFileName
Mode
Multiselect
Preview
SelectedFiles
Title

Methods:

Choose
Show

Constructors:

With the specified work mode

Description:

Used to work with a special dialog that opens one or more files, saves a file, or selects a directory.
To use the method on the web-client, you should preliminarily attach the extension for working with files.

Availability:

Thin client, web-client, thick client.

Example:

Mode = FileDialogMode.Open;
OpeningFileDialogue = New FileDialog(Mode);
OpeningFileDialogue.FullFileName = "";
Filter = "Text(*.txt)|*.txt";
OpeningFileDialogue.Filter = Filter;
OpeningFileDialogue.Multiselect = True;
OpeningFileDialogue.Title = "Select files";
If 
OpeningFileDialogue.Choose() Then
    FilesArray = OpeningFileDialogue.SelectedFiles;
    For 
Each FileName In FilesArray Do
        Selection = New File(FileName);
        Message(FileName+"; Size = "+Selection.Size());
    EndDo
;
Else
    DoMessageBox("File(s) not selected!");
EndIf
;


    

1C:Enterprise Developer's Community