CancelExecute 

Syntax

object.CancelExecute

Description

Call this method to halt a query execution triggered via the Execute button of the ELS-QB toolbar. This may be used within the PreExecute event, giving the host application a chance to check the SQL text before executing the query.

Remarks

CancelExecute method returns True if operation was successful, otherwise False.

Note: Check the PreExecute and PostExecute events. Observe that the PreExecute event is fired before a query is executed, while PostExecute event is fired when the query execution is completed.

Example

         For Sample of CancelExecute usage see the Example of PreExecute  event.