Data.Win.ADODB.TObjectStates

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

type TObjectStates = set of TObjectState;

C++

typedef System::Set<TObjectState, TObjectState::stClosed, TObjectState::stFetching> TObjectStates;

Properties

Type Visibility Source Unit Parent
set
typedef
public
Data.Win.ADODB.pas
Data.Win.ADODB.hpp
Data.Win.ADODB Data.Win.ADODB

Description

TObjectStates values indicate the current state of an ADO object.

Use TObjectStates values to determine the current activity status of a connection or recordset.

The constants that make up the TObjectStates type correspond directly to the similarly named constants used for the State property of the ADO Connection, Command, and Recordset objects. For additional information on these ADO constants and their effects, see the Microsoft Data Access SDK help in the topic for the State property.

TObjectStates consists of the five constants summarized in the following table:



Object State Meaning

stClosed

Connection object is inactive and not connected to a database.

stOpen

Connection object is inactive, but connected to a database.

stConnecting

Connection object is in the process of connecting to a database.

stExecuting

Connection object is currently executing.

stFetching

Connection object is retrieving data from the database.



See Also