共用方式為


CRecordset::GetODBCFieldCount

short GetODBCFieldCount( ) const;

Return Value

The number of fields in the recordset.

Remarks

Call this member function to retrieve the total number of fields in your recordset object.

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

CRecordset OverviewClass MembersHierarchy Chart

See Also   CRecordset::GetFieldValue