Visual C++ 6 Unleashed

Visual C++ 6 Unleashed

By MICKEY WILLIAMS and David Bennett

ADOFields Collections and ADOField Objects

Recordset objects contain a collection of field objects used to work with the individual columns of the rowset. Each column that is returned in the recordset has an associated ADOField object in this collection. The Field object gives you access to column metadata, such as the column name and data type, and the actual value for the column in the current row.

ADOFields Collection Members

The ADOFields collection includes a Count property, which gives the number of individual Field objects in the collection, and an Item property, which is used to retrieve individual Field objects. In addition, the Fields collection includes a Refresh method, although this has no real effect on the Fields collection.

ADOField Object Properties

Each of the individual ADOField objects has the following properties:

ADOField Object Methods

Each ADOField object also implements the following methods:

Share ThisShare This

Informit Network