RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TADOConnection.Cancel Method

Aborts an attempt to connect to a data store.

Pascal
procedure Cancel;
C++
__fastcall Cancel();

Call Cancel to abort an attempt to connect to an ADO data store. To use cancel, the connection attempted must be asynchronous (the ConnectOptions property must be set to coAsyncConnect). 

Cancel must be used after an attempt to connect is initiated by calling the Open method (or setting Connected to true) and before the connection has been successfully made or has timed out. 

 

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