Skip to content

Latest commit

 

History

History
79 lines (70 loc) · 1.72 KB

File metadata and controls

79 lines (70 loc) · 1.72 KB
title CDynamicAccessor::SetLength | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-windows
ms.tgt_pltfrm
ms.topic article
f1_keywords
ATL::CDynamicAccessor::SetLength
CDynamicAccessor.SetLength
CDynamicAccessor::SetLength
ATL.CDynamicAccessor.SetLength
dev_langs
C++
helpviewer_keywords
SetLength method
ms.assetid 8109ae73-04ec-4a47-be97-ba1e60080384
caps.latest.revision 8
author mikeblome
ms.author mblome
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

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