System.UITypes.IsAnAllResult

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function IsAnAllResult(const AModalResult: TModalResult): Boolean;

C++

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

Use IsAnAllResult to check the return value from the ShowModal method. IsAnAllResult returns True if AModalResult is mrAll, mrNoToAll, or mrYesToAll.

Note: If IsAnAllResult returns True, you can convert the result to simple Ok, No, or Yes values by calling StripAllFromResult.

See Also