ADO » DataControl » onReadyStateChange

Syntax:
onReadyStateChange

The onReadyStateChange event can be fired when the value of the ReadyState


Important-

This feature will be removed in a future version of Windows. Avoid using this feature in new development work, and plan to modify applications that currently use this feature. Applications that use RDS should migrate to WCF Data Service.

The onReadyStateChange event is deprecated in ADO.

This event can be fired when the value of the ReadyState property changes.This is a convenient way to check on the progress of a Recordset as it receives new data.This event has no parameters.

The onReadyStateChange event can be fired when the value of the ReadyState property changes. This is a convenient way to monitor the progress of data retrieval without having to call the ReadyState property.

An event is simply a subroutine that can be called automatically after a specific operation has occurred. This subroutine can contain any code that you need to run when the event occurs. The subroutine will only be called if it is included in your code.

The ReadyState property returns one of the adcReadyStateEnum constants. Each indicates the current status of retrieving data from the data source and placing that data into the Recordset object associated with the DataControl object.

ReadyStateEnum Constants
 

Value Description
complete Object is completely loaded
interactive Object is still loading data but you can interact with it
loading Object is loading data
uninitialized Object is not initialized with data

 

 

Examples

Code:
Private Sub objDC_onReadyStateChange( )
   ' place any code you desire here, for example
   Response.Write "Ready State = " & Me.ReadyState & "<br>"
End Sub

See Also: