CDynamicAccessor::GetLength
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::GetLength.
Retrieves the length of the specified column.
bool GetLength(
DBORDINAL nColumn,
DBLENGTH* pLength
) const throw( );
bool GetLength(
const CHAR* pColumnName,
DBLENGTH* pLength
) const throw( );
bool GetLength(
const WCHAR* pColumnName,
DBLENGTH* pLength
) const throw( );
Parameters
nColumn
[in] The column number. Column numbers start with 1. A value of 0 refers to the bookmark column, if any.
pColumnName
[in] A pointer to a character string containing the column name.
pLength
[out] A pointer to the integer containing the length of the column in bytes.
Returns true if the specified column is found. Otherwise, this function returns false.
The first override takes the column number, and the second and third overrides take the column name in ANSI or Unicode format, respectively.
Header: atldbcli.h