RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Controls.IsAnAllResult Function

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

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

Controls

Call IsAnAllResult to check whether the user closed a modal form by indicating a response that applies to "all". Pass the return value from the form's ShowModal method as the AModalResult argument. IsAnAllResult returns true if AModalResult is mrAll, mrNoToAll, or mrYesToAll, false otherwise.

Note: If IsAnAllResult returns
true, you can convert the result to a simple Ok, No, or Yes result by calling StripAllFromResult.  

 

TCustomForm 

TButton 

IsAbortResult 

IsNegativeResult 

IsPositiveResult 

StripAllFromResult 

TCustomForm

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