当前位置: 首页 > 网络学院 > 服务端脚本教程 > ADO > ADO Cancel 方法
The Cancel method cancels an execution of a method call.
Cancel的作用是:取消执行一个方法请求。
The Cancel method cancels different tasks for each object. The table below shows what task is cancelled when this method is called:
Cancel将根据每个对象取消执行不同的任务。下表列举了这些被取消的任务:
Object 对象 | Cancelled task 被取消的任务 |
---|---|
Command | Execute. 执行[Excute] 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. 执行或打开[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 复制记录、删除记录、移动记录或打开[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 打开 |
object.Cancel |