Expand Minimize
This topic has not yet been rated - Rate this topic

CRecordset::GetODBCFieldInfo

Obtains information about the fields in the recordset.

void GetODBCFieldInfo(
   LPCTSTR lpszName,
   CODBCFieldInfo& fieldinfo 
);
void GetODBCFieldInfo(
   short nIndex,
   CODBCFieldInfo& fieldinfo 
);

Parameters

lpszName
The name of a field.
fieldinfo
A reference to a CODBCFieldInfo structure.
nIndex
The zero-based index of the field.

Remarks

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 Recordset: Creating and Closing Recordsets (ODBC).

Exceptions

This method can throw exceptions of type CDBException*.

See Also

CRecordset Overview | Class Members | Hierarchy Chart | CRecordset::GetFieldValue | CODBCFieldInfo

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.