Vcl.Dialogs.TCustomFileDialog.Execute

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Execute: Boolean; overload; virtual;
function Execute(ParentWnd: HWND): Boolean; overload; virtual;

C++

virtual bool __fastcall Execute()/* overload */;
virtual bool __fastcall Execute(HWND ParentWnd)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
Vcl.Dialogs.pas
Vcl.Dialogs.hpp
Vcl.Dialogs TCustomFileDialog

Description

Displays the dialog box.

Execute opens the dialog instance at runtime. Generally, Execute returns true when the user makes a selection and clicks OK, and returns false when the user closes the dialog without making a selection.

If the window handle parameter is not supplied, the parent window of the application is used as the parent window of the dialog. Execute calls DoOnExecute, which triggers the OnExecute event.

See Also