Share via


CDynamicAccessor::SetLength

 

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::SetLength.

Sets the length of the specified column.

Syntax

  
      bool SetLength(   
   DBORDINAL nColumn,   
   DBLENGTH nLength    
) throw( );  
bool SetLength(   
   const CHAR* pColumnName,   
   DBLENGTH nLength    
) throw( );  
bool SetLength(   
   const WCHAR* pColumnName,   
   DBLENGTH nLength    
) throw( );  

Parameters

nColumn
[in] The column number. Column numbers start with 1. A value of 0 refers to the bookmark column, if any.

nLength
[in] The length of the column in bytes.

pColumnName
[in] A pointer to a character string containing the column name.

Return Value

Returns true if the specified column length is set successfully. Otherwise, this function returns false.

Requirements

Header: atldbcli.h

See Also

CDynamicAccessor Class
CDynamicAccessor::GetLength