CDaoRecordset::GetParamValue

virtual COleVariant GetParamValue( int nIndex );
throw( CDaoException, CMemoryException );

virtual COleVariant GetParamValue( LPCTSTR lpszName );
throw( CDaoException, CMemoryException );

Return Value

An object of class COleVariant that contains the parameter’s value.

Parameters

nIndex

The numerical position of the parameter in the underlying DAOParameter object.

lpszName

The name of the parameter whose value you want.

Remarks

Call this member function to retrieve the current value of the specified parameter stored in the underlying DAOParameter object. You can access the parameter either by name or by its numerical position in the collection.

For more information about parameters, see the article DAO Queries: Filtering and Parameterizing Queries in Visual C++ Programmer's Guide. For related information, see the topic "Parameter Object" in DAO Help.

CDaoRecordset OverviewClass MembersHierarchy Chart

See Also   CDaoRecordset::SetParamValue, CDaoRecordset::m_nParams