Vcl.Controls.StripAllFromResult
Delphi
function StripAllFromResult(const AModalResult: TModalResult): TModalResult;
C++
extern DELPHI_PACKAGE System::Uitypes::TModalResult __fastcall StripAllFromResult(const System::Uitypes::TModalResult AModalResult);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | Vcl.Controls.pas Vcl.Controls.hpp |
Vcl.Controls | Vcl.Controls |
説明
TModalResult 値を「すべて」を表す定数から単純な定数に変換します。
StripAllFromResult 関数を呼び出すと,TModalResult 値から「すべて」の内容を削除できます。たとえば,IsAnAllResult 関数でフォームの ShowModal メソッドの結果を調べた後,StripAllFromResult を呼び出すことにより,共通のコードで 1 つの選択された項目またはすべての項目に適用される結果を処理することができます。
StripAllFromResult は,次のように値を変換します。
AModalResult | 戻り値 |
---|---|
mrAll |
mrOk |
mrNoToAll |
mrNo |
mrYesToAll |
mrYes |