Show: Delphi C++
Display Preferences

Vcl.Controls.IsPositiveResult

From XE2 API Documentation
Jump to: navigation, search

Delphi

function IsPositiveResult(const AModalResult: TModalResult): Boolean;

C++

extern PACKAGE bool __fastcall IsPositiveResult(const System::Uitypes::TModalResult AModalResult);

Properties

Type Visibility Source Unit Parent
function public
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls Vcl.Controls

Description

Checks the return value from a modal form dialog and indicates whether the user selected Ok, Yes, Yes to All, or All.

Call IsPositiveResult to check whether the user closed a modal form by indicating a "Yes" or "Ok" response. Pass the return value from the form's ShowModal method as the AModalResult argument. IsPositiveResultreturns true if AModalResult is mrYes, mrOk, mrYesToAll or mrAll, false otherwise.

See Also

Personal tools
Previous Versions
Translations