共用方式為


CRecordset::GetODBCFieldCount

Retrieves the total number of fields in your recordset object.

short GetODBCFieldCount( ) const;

Return Value

The number of fields in the recordset.

Remarks

For more information about creating recordsets, see the article Recordset: Creating and Closing Recordsets (ODBC).

Requirements

Header: afxdb.h

See Also

Concepts

CRecordset Class

CRecordset Members

Hierarchy Chart

CRecordset::GetFieldValue