CDaoQueryDef::GetParameterCount

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

Return Value

The number of parameters defined in the query.

Remarks

Call this member function to retrieve the number of parameters in the saved query. GetParameterCount is useful for looping through all parameters in the querydef. For that purpose, use GetParameterCount in conjunction with GetParameterInfo.

For information about parameterizing queries, see the article DAO Queries: Filtering and Parameterizing Queries in Visual C++ Programmer's Guide. For related information, see the topics "Parameter Object", "Parameters Collection", and "PARAMETERS Declaration (SQL)" in DAO Help.

CDaoQueryDef OverviewClass MembersHierarchy Chart

See Also   CDaoQueryDef::GetParamValue, CDaoQueryDef::SetParamValue