Vcl.Controls.IsNegativeResult
Delphi
function IsNegativeResult(const AModalResult: TModalResult): Boolean;
C++
extern DELPHI_PACKAGE bool __fastcall IsNegativeResult(const System::Uitypes::TModalResult AModalResult);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | Vcl.Controls.pas Vcl.Controls.hpp |
Vcl.Controls | Vcl.Controls |
説明
モーダル フォーム ダイアログからの戻り値を調べ、[いいえ] または [すべていいえ] をユーザーが選択したかどうかを示します。
IsNegativeResult を呼び出すと、「No」の応答を示して、モーダル フォームを閉じたかをチェックすることができます。 フォームの ShowModal メソッドから返された値を、AModalResult 引数として渡します。 IsNegativeResult は、AModalResult が mrNo または mrNoToAll の場合に true を返し、そうでなければ false を返します。