CDynamicAccessor::GetOrdinal
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at CDynamicAccessor::GetOrdinal.
Retrieves the column number given a column name.
bool GetOrdinal(
const CHAR* pColumnName,
DBORDINAL* pOrdinal
) const throw( );
bool GetOrdinal(
const WCHAR* pColumnName,
DBORDINAL* pOrdinal
) const throw( );
Parameters
pColumnName
[in] A pointer to a character string containing the column name.
pOrdinal
[out] A pointer to the column number.
Returns true if a column with the specified name is found. Otherwise, this function returns false.
Header: atldbcli.h
Show: