Quick References
      ADO
      ASP
      CSS2
      HTML
      JavaScript
      Jet SQL
      VBScript
      WML
      WMLScript
      WSH
      XHTML
      XML DOM
      XSLT

Features
      Knowledge Base
      Tutorials

Partners
     ZVON.ORG
     XML
     Planet Source Code
     VisualBuilder
     Web Design
     Your HTML Source
     XML/XSLT Forums
     ASPAlliance
     Scripts
     
     Programmers Heaven
     Tek-Tips Forums
     Developer Fusion
     Code Project











METHOD:  Command::Cancel

commandobject.Cancel
 
The Cancel method is used to cancel the last pending, asynchronous call involving the Execute method of the Command object.
 
The Options parameter of the Execute method must be set to either the adAsyncExecute or adAsyncFetch constant. Otherwise, a run-time error will be generated.
 
An asynchronous call returns control to the calling program before the operation is completed and allows the execution of the code to continue.
 
Code (VBScript):
If (objCommand.State = adStateFetching) Then
   objCommand.Cancel
End If

 


Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information