RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Controls.IsAbortResult Function

Checks the return value from a modal form dialog and indicates whether the user selected Abort or Cancel.

Pascal
function IsAbortResult(const AModalResult: TModalResult): Boolean;
C++
Boolean IsAbortResult(const TModalResult AModalResult);

Controls

Call IsAbortResult to check whether the user clicked "Abort" or "Cancel" to close a modal form. Pass the return value from the form's ShowModal method as the AModalResult argument. IsAbortResult returns true if AModalResult is mrAbort or mrCancel, false otherwise. 

 

TCustomForm 

TButton 

IsAnALlResult 

IsNegativeResult 

IsPositiveResult 

StripAllFromResult 

TCustomForm

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!