Vcl.Controls.IsNegativeResult
Delphi
function IsNegativeResult(const AModalResult: TModalResult): Boolean;
C++
extern DELPHI_PACKAGE bool __fastcall IsNegativeResult(const System::Uitypes::TModalResult AModalResult);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.Controls.pas Vcl.Controls.hpp |
Vcl.Controls | Vcl.Controls |
Description
Checks the return value from a modal form dialog and indicates whether the user selected No or No to All.
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.