Compartir a través de


CDaoQueryDef::GetParameterInfo

Call this member function to obtain information about a parameter defined in the querydef.

void GetParameterInfo( 
   int nIndex, 
   CDaoParameterInfo& paraminfo, 
   DWORD dwInfoOptions = AFX_DAO_PRIMARY_INFO  
);
void GetParameterInfo( 
   LPCTSTR lpszName, 
   CDaoParameterInfo& paraminfo, 
   DWORD dwInfoOptions = AFX_DAO_PRIMARY_INFO  
);

Parameters

  • nIndex
    The zero-based index of the desired parameter in the querydef's Parameters collection, for lookup by index.

  • paraminfo
    A reference to a CDaoParameterInfo object that returns the information requested.

  • dwInfoOptions
    Options that specify which information about the parameter to retrieve. The available option is listed here along with what it causes the function to return:

    • AFX_DAO_PRIMARY_INFO   (Default) Name, Type
  • lpszName
    A string containing the name of the desired parameter, for lookup by name. You can use a CString.

Remarks

For a description of the information returned in paraminfo, see the CDaoParameterInfo structure. This structure has members that correspond to the descriptive information under dwInfoOptions above.

For related information, see the topic "PARAMETERS Declaration (SQL)" in DAO Help.

Requirements

Header: afxdao.h

See Also

Reference

CDaoQueryDef Class

Hierarchy Chart

CDaoQueryDef::GetParameterCount

Other Resources

CDaoQueryDef Members