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);

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. 

 

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