VistaDB 5






VistaDB.DDA Namespace > IVistaDBTableSchema Interface > AddColumn Method : AddColumn(String,VistaDBType,Int32,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
Code page to keep column's value of type Char, VarChar, Text being encoded in the file
AddColumn(String,VistaDBType,Int32,Int32) Method
Append new column
Syntax
'Declaration
 
Overloads Function AddColumn( _
   ByVal name As System.String, _
   ByVal type As VistaDBType, _
   ByVal maxLen As System.Integer, _
   ByVal codePage 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 codePage As System.Integer
Dim value As IVistaDBColumnAttributes
 
value = instance.AddColumn(name, type, maxLen, codePage)
IVistaDBColumnAttributes AddColumn( 
   System.string name,
   VistaDBType type,
   System.int maxLen,
   System.int codePage
)
function AddColumn( 
    name: System.String;
    type: VistaDBType;
    maxLen: System.Integer;
    codePage: System.Integer
): IVistaDBColumnAttributes; 
function AddColumn( 
   name : System.String,
   type : VistaDBType,
   maxLen : System.int,
   codePage : System.int
) : IVistaDBColumnAttributes;
IVistaDBColumnAttributes* AddColumn( 
   System.string* name,
   VistaDBType type,
   System.int maxLen,
   System.int codePage
) 
IVistaDBColumnAttributes^ AddColumn( 
   System.String^ name,
   VistaDBType type,
   System.int maxLen,
   System.int codePage
) 

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
codePage
Code page to keep column's value of type Char, VarChar, Text being encoded in the file

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