Vcl.Controls.IsPositiveResult

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function IsPositiveResult(const AModalResult: TModalResult): Boolean;

C++

extern DELPHI_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. IsPositiveResult returns true if AModalResult is mrYes, mrOk, mrYesToAll or mrAll, false otherwise.

See Also

Retrieved from "https://docwiki.embarcadero.com/Libraries/Tokyo/e/index.php?title=Vcl.Controls.IsPositiveResult&oldid=678469"