ADO Cancel Method
Complete Connection Object Reference
The Cancel method cancels an execution of a method call.
The Cancel method cancels different tasks for each object. The table below shows what task is
cancelled when this method is called:
| Object |
Cancelled task |
| Command |
Execute.
Note: The Options parameter of the Execute method must be set to
adAsyncExecute or adAsyncFetch, before the Cancel method is called,
otherwise a run-time error will occur
|
| Connection |
Execute or Open.
Note: The Options parameter of the Open method must be set to adSyncConnect, or
the Options parameter of the Execute method be set to adAsyncExecute or adAsyncFetch,
before the Cancel method is called, otherwise a run-time error will occur
|
| Record |
CopyRecord, DeleteRecord, MoveRecord, or Open
Note: The Options parameter of the Execute method must be set to
adAsyncExecute or adAsyncFetch, before the Cancel method is called,
otherwise a run-time error will occur
|
| Recordset |
Open
|
| Stream |
Open
|
Syntax
Complete Connection Object Reference
Whether you're new to XML or already an advanced user, the user-friendly views
and powerful entry helpers, wizards, and debuggers in XMLSpy are designed to
meet your XML and Web services development needs from start to finish.
- XML editor
- Graphical XML Schema / DTD editors
- XSLT 1.0/2.0 editor, debugger, profiler
- XQuery editor, debugger, profiler
- Support for Office Open XML (OOXML)
- Graphical WSDL editor & SOAP debugger
- Java, C#, C++ code generation
- And much more!
Download a free 30-day trial today!
Click to see a demo!
Learn what’s new in v2008
|