VistaDB 5






VistaDB.DDA Namespace > IVistaDBTableSchema Interface > AlterColumnType Method : AlterColumnType(String,VistaDBType,Int32) Method
Name of the existing column
New VistaDBType type for the column
New maximum length for character column. If new VistaDBType type doesn't support this maximum the parameter has no effect. Pass 0 value to use existing maxLen.
AlterColumnType(String,VistaDBType,Int32) Method
Alter the type of existing column
Syntax
'Declaration
 
Overloads Function AlterColumnType( _
   ByVal name As System.String, _
   ByVal newType As VistaDBType, _
   ByVal newMaxLen As System.Integer _
) As IVistaDBColumnAttributes
'Usage
 
Dim instance As IVistaDBTableSchema
Dim name As System.String
Dim newType As VistaDBType
Dim newMaxLen As System.Integer
Dim value As IVistaDBColumnAttributes
 
value = instance.AlterColumnType(name, newType, newMaxLen)
IVistaDBColumnAttributes AlterColumnType( 
   System.string name,
   VistaDBType newType,
   System.int newMaxLen
)
function AlterColumnType( 
    name: System.String;
    newType: VistaDBType;
    newMaxLen: System.Integer
): IVistaDBColumnAttributes; 
function AlterColumnType( 
   name : System.String,
   newType : VistaDBType,
   newMaxLen : System.int
) : IVistaDBColumnAttributes;
IVistaDBColumnAttributes* AlterColumnType( 
   System.string* name,
   VistaDBType newType,
   System.int newMaxLen
) 
IVistaDBColumnAttributes^ AlterColumnType( 
   System.String^ name,
   VistaDBType newType,
   System.int newMaxLen
) 

Parameters

name
Name of the existing column
newType
New VistaDBType type for the column
newMaxLen
New maximum length for character column. If new VistaDBType type doesn't support this maximum the parameter has no effect. Pass 0 value to use existing maxLen.

Return Value

IVistaDBColumnAttributes describing altered column
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