Displays the modal dialog window.
Declaration
| dialogObj | One of the user forms components listed in the Applies To section | |||
| Result | Boolean |
Applies To
The method applies to the following components:
TOpenDialog, TSaveDialog, TSelectDirectory, TSelectObjectPropertyDialog
Description
The Execute method displays the dialog window and returns True if the user has made the selection and confirmed the selection by pressing the corresponding dialog button (OK, Open or other).
Property Value
True, if the user has selected any files and pressed the OK, Open or similar button and False if the dialog was closed with the Cancel button.
Remarks
To get the name of the file selected in the TOpenDialog or TSaveDialog dialogs, use the FileName property. To get a list of multiple files selected in the TOpenDialog dialog, use the Files property.
To obtain the name of the folder selected in the TSelectDirectory dialog, use the Directory property.
To obtain the name of the object and the object property selected in the TSelectObjectPropertyDialog dialog, use the Properties property.
See Also
FileName Property
Files Property
Directory Property
Properties Property (TSelectObjectPropertyDialog)
