System.UITypes.IsPositiveResult

提供:RAD Studio API Documentation

Delphi

function IsPositiveResult(const AModalResult: TModalResult): Boolean;

C++

extern DELPHI_PACKAGE bool __fastcall IsPositiveResult(const TModalResult AModalResult);

プロパティ

種類 可視性 ソース ユニット 親
function public
System.UITypes.pas
System.UITypes.hpp
System.UITypes System.UITypes


説明

[OK]、[はい]、[すべてはい]、[すべて]のいずれかをユーザーが選択したことを AModalResult パラメータが示しているかどうかを確認します。

IsPositiveResult を使用すると、ShowModal メソッドの戻り値を確認できます。AModalResult が mrOk、mrYes、mrYesToAll、mrAll のいずれかの場合、IsPositiveResult は True を返します。

関連項目