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

TOpenDialog.CheckAllFiles

Ensures that values in the FileName and Files properties are valid for the Options in the dialog.

Declaration

Source position: dialogs.pp line 251

protected function TOpenDialog.CheckAllFiles: Boolean; virtual;

Function result

True if the file names are valid for Options in the dialog.

Description

CheckAllFiles is a Boolean function used to validate values in the FileName and Files properties using the Options enabled for the dialog.

FileName is checked when a non-empty string value has been assigned to the property, or when ofAllowMultiSelect has been omitted from the Options property. The lines of text in the Files property are validated when ofAllowMultiSelect has been included in the Options property.

CheckAllFiles calls the CheckFile method to validate and potentially update a file name. A file name modified in CheckFile to include a file extension is stored in the origin property (FileName or Files).

The return value is True if the file name(s) meet the requirements for the Options property and the local file system.

See also

TOpenDialog.CheckFile

  

Ensures the specified file name meets the requirements for the dialog.

TOpenDialog.Options

  

Options to be used for this dialog.

TFileDialog.FileName

  

Contains the UTF-8-encoded name for a file chosen using the dialog.

TFileDialog.Files

  

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

TOpenOption

  

Options which can be used in a TOpenDialog instance.


Version 4.0 Generated 2025-05-03 Home