ERR_RUNTIME #1056

    As 1% was removed from ReDim 2% statement.

    Description

    In Visual Basic 6.0 the ReDim statement can be used to declare dynamic array variables, or even change the types of the elements contained in an array. In VB.NET the ReDim statement cannot be used to change the type of a preexisting variable.

    For more information visit:

    Recommendations

    Sample VB6

    Dim v As Variant
    Dim w(3) As Integer
    w(2) = 3
    v = w
    ReDim v(5) As Byte

    Target VB.NET

    Expected VB.NET

    Dim w(3) As Integer
    w(2) = 3
    Dim v(5) As Integer

    Target C#

    Expected C#


    Download VBUC Free Trial
    Download VBUC Now

    It's time to eradicate VB6
    ROI of eradicating VB6

    8 Proven Tips for
    Planning a Successful Migration

    8 Tips for migration