CDaoParameterInfo Structure
The CDaoParameterInfo structure contains information about a parameter object defined for data access objects (DAO).
struct CDaoParameterInfo
{
CString m_strName; // Primary
short m_nType; // Primary
ColeVariant m_varValue; // Secondary
};
The references to Primary and Secondary above indicate how the information is returned by the GetParameterInfo member function in class CDaoQueryDef.
MFC does not encapsulate DAO parameter objects in a class. DAO querydef objects underlying MFC CDaoQueryDef objects store parameters in their Parameters collections. To access the parameter objects in a CDaoQueryDef object, call the querydef object's GetParameterInfo member function for a particular parameter name or an index into the Parameters collection. You can use the CDaoQueryDef::GetParameterCount member function in conjunction with GetParameterInfo to loop through the Parameters collection.
Information retrieved by the CDaoQueryDef::GetParameterInfo member function is stored in a CDaoParameterInfo structure. Call GetParameterInfo for the querydef object in whose Parameters collection the parameter object is stored.
Note
|
|---|
|
If you want to get or set only the value of a parameter, use the GetParamValue and SetParamValue member functions of class CDaoRecordset. |
CDaoParameterInfo also defines a Dump member function in debug builds. You can use Dump to dump the contents of a CDaoParameterInfo object.
Note