ADOCommand Property

Exposes the read-only Data Control's CommandTimeout value to allow users to configure a time-out duration in Visual Basic scripts.

Syntax

object.ADOCommand

Parameters

The object placeholder represents an object expression that evaluates to an object in the Applies To list.

Remarks

The data type of this property is ADODB.COMMAND.

If the value is not set, then Command object will use the default value of 30 seconds for the time-out.

Example

The following sample script demonstrates the use of the ADO CommandTimeOut:

' Create a ADODB.Command object

Dim objCommand As ADODB.Command

 

' Capture the current command instance into the newly create object

Set objCommand = vxData1.ADOCommand

 

' Set a new CommandTimeOut value in seconds

objCommand.CommandTimeout = 40

 

' Refresh the object

vxData1.RefreshData

 

Applies to