CDaoQueryDef::GetFieldCount

short GetFieldCount( );
throw( CDaoException, CMemoryException );

Return Value

The number of fields defined in the query.

Remarks

Call this member function to retrieve the number of fields in the query. GetFieldCount is useful for looping through all fields in the querydef. For that purpose, use GetFieldCount in conjunction with GetFieldInfo.

For information about obtaining information about querydef fields, see the article DAO Collections: Obtaining Information About DAO Objects in Visual C++ Programmer's Guide.

CDaoQueryDef OverviewClass MembersHierarchy Chart