CRecordset::GetODBCFieldInfo

void GetODBCFieldInfo( LPCTSTRlpszName**, CODBCFieldInfo&fieldinfo);**
throw( CDBException );

void GetODBCFieldInfo( shortnIndex, CODBCFieldInfo&fieldinfo);
throw( CDBException );

Parameters

lpszName

The name of a field.

fieldinfo

A reference to a CODBCFieldInfo structure.

nIndex

The zero-based index of the field.

Remarks

Call this member function to obtain information about the fields in the recordset. One version of the function lets you look up a field by name. The other version lets you look up a field by index.

For a description about the information returned, see the CODBCFieldInfo structure.

For more information about creating recordsets, see the article in Visual C++ Programmer’s Guide.

CRecordset OverviewClass MembersHierarchy Chart

See Also   CRecordset::GetFieldValue, CODBCFieldInfo