VistaDB 5






VistaDB.DDA Namespace > IVistaDBTableSchema Interface > AlterColumnType Method : AlterColumnType(String,VistaDBType,Int32,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.
New code page. If new VistaDBType type doesn't support this maximum the parameter has no effect. Pass 0 value to use existing code page.
AlterColumnType(String,VistaDBType,Int32,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, _
   ByVal newCodePage 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 newCodePage As System.Integer
Dim value As IVistaDBColumnAttributes
 
value = instance.AlterColumnType(name, newType, newMaxLen, newCodePage)
IVistaDBColumnAttributes AlterColumnType( 
   System.string name,
   VistaDBType newType,
   System.int newMaxLen,
   System.int newCodePage
)
function AlterColumnType( 
    name: System.String;
    newType: VistaDBType;
    newMaxLen: System.Integer;
    newCodePage: System.Integer
): IVistaDBColumnAttributes; 
function AlterColumnType( 
   name : System.String,
   newType : VistaDBType,
   newMaxLen : System.int,
   newCodePage : System.int
) : IVistaDBColumnAttributes;
IVistaDBColumnAttributes* AlterColumnType( 
   System.string* name,
   VistaDBType newType,
   System.int newMaxLen,
   System.int newCodePage
) 
IVistaDBColumnAttributes^ AlterColumnType( 
   System.String^ name,
   VistaDBType newType,
   System.int newMaxLen,
   System.int newCodePage
) 

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.
newCodePage
New code page. If new VistaDBType type doesn't support this maximum the parameter has no effect. Pass 0 value to use existing code page.

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