RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Controls.IsNegativeResult Function

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

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

Controls

Call IsNegativeResult to check whether the user closed a modal form by indicating a "No" response. Pass the return value from the form's ShowModal method as the AModalResult argument. IsNegativeResult returns true if AModalResult is mrNo or mrNoToAll, false otherwise. 

 

TCustomForm 

TButton 

IsAbortResult 

IsAnAllResult 

IsPositiveResult 

StripAllFromResult 

TCustomForm

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