VistaDB 6
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


In This Topic
    AddColumn(String,VistaDBType,Int32) Method
    In This Topic
    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
    )

    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