Checks the return value from a modal form dialog and indicates whether the user selected Ok, Yes, Yes to All, or All.
function IsPositiveResult(const AModalResult: TModalResult): Boolean;
Boolean IsPositiveResult(const TModalResult AModalResult);
Controls
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.
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|