System.UITypes.IsAbortResult

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function IsAbortResult(const AModalResult: TModalResult): Boolean;

C++

extern DELPHI_PACKAGE bool __fastcall IsAbortResult(const TModalResult AModalResult);

Properties

Type Visibility Source Unit Parent
function public
System.UITypes.pas
System.UITypes.hpp
System.UITypes System.UITypes

Description

Checks whether the AModalResult parameter indicates that the user has selected Abort or Cancel.

Use IsAbortResult to check the return value from the ShowModal method. IsAbortResult returns True if AModalResult is mrAbort or mrCancel.

See Also