RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Controls.IsPositiveResult Function

Checks the return value from a modal form dialog and indicates whether the user selected Ok, Yes, Yes to All, or All.

Pascal
function IsPositiveResult(const AModalResult: TModalResult): Boolean;
C++
Boolean IsPositiveResult(const TModalResult AModalResult);

Controls

Call IsPositiveResult to check whether the user closed a modal form by indicating a "Yes" or "Ok" response. Pass the return value from the form's ShowModal method as the AModalResult argument. IsPositiveResult returns true if AModalResult is mrYes, mrOk, mrYesToAll or mrAll, false otherwise. 

 

TCustomForm 

TButton 

IsAbortResult 

IsAnAllResult 

IsNegativeResult 

StripAllFromResult 

TCustomForm

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!