RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomFileDialog.Execute Method ()

Displays the dialog box.

Pascal
function Execute: Boolean; virtual; overload;
function Execute(ParentWnd: HWND): Boolean; virtual; overload;
C++
virtual __fastcall Boolean Execute();
virtual __fastcall Boolean Execute(HWND ParentWnd);

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!