VistaDB 6
VistaDB.DDA Namespace / IVistaDBTableSchema Interface / AddColumn Method / AddColumn(String,VistaDBType) Method
Column's name
VistaDBType column type. If you pass Char, VarChar or Text type they will be converted to unicode N-type with maximum allowed size.


In This Topic
    AddColumn(String,VistaDBType) Method
    In This Topic
    Append new non-character type column
    Syntax
    'Declaration
     
    
    Overloads Function AddColumn( _
       ByVal name As System.String, _
       ByVal type As VistaDBType _
    ) As IVistaDBColumnAttributes
    'Usage
     
    
    Dim instance As IVistaDBTableSchema
    Dim name As System.String
    Dim type As VistaDBType
    Dim value As IVistaDBColumnAttributes
     
    value = instance.AddColumn(name, type)
    IVistaDBColumnAttributes AddColumn( 
       System.string name,
       VistaDBType type
    )

    Parameters

    name
    Column's name
    type
    VistaDBType column type. If you pass Char, VarChar or Text type they will be converted to unicode N-type with maximum allowed size.

    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