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


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

    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