Vcl.Controls.IsAbortResult
Delphi
function IsAbortResult(const AModalResult: TModalResult): Boolean;
C++
extern DELPHI_PACKAGE bool __fastcall IsAbortResult(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 Abort or Cancel.
Call IsAbortResult to check whether the user clicked "Abort" or "Cancel" to close a modal form. Pass the return value from the form's ShowModal method as the AModalResult argument. IsAbortResult returns true if AModalResult is mrAbort or mrCancel, false otherwise.