Share via


CDynamicAccessor::GetLength

 

The latest version of this topic can be found at CDynamicAccessor::GetLength.

Retrieves the length of the specified column.

Syntax

  
      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.

Return Value

Returns true if the specified column is found. Otherwise, this function returns false.

Remarks

The first override takes the column number, and the second and third overrides take the column name in ANSI or Unicode format, respectively.

Requirements

Header: atldbcli.h

See Also

CDynamicAccessor Class
CDynamicAccessor::SetLength