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);

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!