VistaDB 5






VistaDB.DDA Namespace > IVistaDBTableSchema Interface > AddColumn Method : AddColumn(String,VistaDBType,Int32) Method
Column's name
VistaDBType column's type
Maximum length of character type column. This value doesn't matter for Text, NText and Image columns
AddColumn(String,VistaDBType,Int32) Method
Append new column using default ANSI code page for database culture
Syntax
'Declaration
 
Overloads Function AddColumn( _
   ByVal name As System.String, _
   ByVal type As VistaDBType, _
   ByVal maxLen As System.Integer _
) As IVistaDBColumnAttributes
'Usage
 
Dim instance As IVistaDBTableSchema
Dim name As System.String
Dim type As VistaDBType
Dim maxLen As System.Integer
Dim value As IVistaDBColumnAttributes
 
value = instance.AddColumn(name, type, maxLen)
IVistaDBColumnAttributes AddColumn( 
   System.string name,
   VistaDBType type,
   System.int maxLen
)
function AddColumn( 
    name: System.String;
    type: VistaDBType;
    maxLen: System.Integer
): IVistaDBColumnAttributes; 
function AddColumn( 
   name : System.String,
   type : VistaDBType,
   maxLen : System.int
) : IVistaDBColumnAttributes;
IVistaDBColumnAttributes* AddColumn( 
   System.string* name,
   VistaDBType type,
   System.int maxLen
) 
IVistaDBColumnAttributes^ AddColumn( 
   System.String^ name,
   VistaDBType type,
   System.int maxLen
) 

Parameters

name
Column's name
type
VistaDBType column's type
maxLen
Maximum length of character type column. This value doesn't matter for Text, NText and Image columns

Return Value

0-based column's index
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also