[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Ensures the specified file name meets the requirements for the dialog.
Source position: dialogs.pp line 249
protected function TOpenDialog.CheckFile( |
var AFilename: string |
):Boolean; virtual; |
AFilename |
|
Fully-qualified file name or directory path examined and possibly updated in the method. |
True if the file name is valid for the open dialog.
CheckFile is a Boolean function used to examine and update the specified file name. AFilename is a variable argument which contains the path to the file and can include its extension. The return value is True if the file name satisfies the filter, extension, and options used for the open dialog.
Values in DefaultExt, Filter, and FilterIndex are used to get a file extension when AFilename does not already include one. The file extension is appended to the value in AFilename.
Values in Options are used to determine if the file name is usable, including:
CheckFile is used in the CheckAllFiles method to validate the entries in the Files property.
Modified in LCL version 2.2.6 to include an additional helper function (ExtractFilterValues) in the implementation.
|
Options to be used for this dialog. |
|
|
Ensures that values in the FileName and Files properties are valid for the Options in the dialog. |
|
|
Determines whether the specified file name exists. |
|
|
Stores the names of files (or directories) selected using the dialog. |
|
|
Contains the UTF-8-encoded name for a file chosen using the dialog. |
|
|
Contains the default extension for file names in the dialog. |
|
|
A string which contains available filename filters used to select files by their file extensions. |
|
|
This property sets which file filter is the default. |
|
|
Options which can be used in a TOpenDialog instance. |
Version 4.0 | Generated 2025-05-03 | Home |