Partager via


CDaoRecordset::GetParamValue

Call this member function to retrieve the current value of the specified parameter stored in the underlying DAOParameter object.

virtual COleVariant GetParamValue(
   int nIndex 
);
virtual COleVariant GetParamValue(
   LPCTSTR lpszName 
);

Parameters

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

  • lpszName
    The name of the parameter whose value you want.

Return Value

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

Remarks

You can access the parameter either by name or by its numerical position in the collection.

For related information, see the topic "Parameter Object" in DAO Help.

Requirements

Header: afxdao.h

See Also

Reference

CDaoRecordset Class

Hierarchy Chart

CDaoRecordset::SetParamValue

CDaoRecordset::m_nParams

Other Resources

CDaoRecordset Members