Visual Basic: RDO Data Control

Visual Studio 6.0

AsyncCheckInterval Property (Remote Data)

See Also    Example    Applies To

Returns or sets a value specifying the number of milliseconds that RDO waits between checks to see if an asynchronous query is complete.

Syntax

object.AsyncCheckInterval [= value]

The AsyncCheckInterval property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
value A Long expression as described in Remarks.

Remarks

When you use the rdAsyncEnable option to execute a query asynchronously, RDO polls the data source periodically to determine if the query has completed. You can change the duration of time between checks by using the AsyncCheckInterval property. RDO also checks the status of an asynchronous query when you examine the StillExecuting property.

The AsyncCheckInterval property defaults to 1000 milliseconds (once a second).

Polling too often can adversely affect both server and workstation performance. Polling less frequently can improve performance, but may affect how quickly data is made available to the user.

As long as the asynchronous query is executing, the StillExecuting property returns True. Once the query is completed, the StillExecuting property is set to false and the QueryComplete event is fired. You can also interrupt and end an asynchronous query by using the rdoResultset object's Cancel or Close method.

Show: