Displays the modal dialog window.
|dialogObj||One of the user forms components listed in the Applies To section|
The method applies to the following components:
TOpenDialog, TSaveDialog, TSelectDirectory, TSelectObjectPropertyDialog
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).
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.
To get the name of the file selected in the
TSaveDialog dialogs, use the
FileName property. To get a list of multiple files selected in the
TOpenDialog dialog, use the
To obtain the name of the folder selected in the
TSelectDirectory dialog, use the
To obtain the name of the object and the object property selected in the
TSelectObjectPropertyDialog dialog, use the
Properties Property (TSelectObjectPropertyDialog)