System.UITypes.IsPositiveResult

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function IsPositiveResult(const AModalResult: TModalResult): Boolean;

C++

extern DELPHI_PACKAGE bool __fastcall IsPositiveResult(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 Ok, Yes, Yes to All, or All.

Use IsPositiveResult to check the return value from the ShowModal method. IsPositiveResult returns True if AModalResult is mrOk, mrYes, mrYesToAll, or mrAll.

See Also