VistaDB 5






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.
AddColumn(String,VistaDBType) Method
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
)
function AddColumn( 
    name: System.String;
    type: VistaDBType
): IVistaDBColumnAttributes; 
function AddColumn( 
   name : System.String,
   type : VistaDBType
) : IVistaDBColumnAttributes;
IVistaDBColumnAttributes* AddColumn( 
   System.string* name,
   VistaDBType 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