'ReDim' statements can no longer be used to declare array variables

ReDim can only be used to change the size of an existing array.

Error ID: BC30811

To correct this error

  • Specify the size of arrays when they are declared; for example:

    Dim X(20) As Integer
    

See Also

Concepts

ReDim Statement for Visual Basic 6.0 Users

Reference

Arrays Summary

ReDim Statement (Visual Basic)