Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Arrays cannot be initialized if they are declared to be a specific size.
Error ID: BC30672
To correct this error
Declare the array, and then initialize it separately.
Declare and initialize as a dynamic array, and use
ReDim
if necessary; for example:Dim A() As Integer = {0, 1, 2, 3} ReDim Preserve A(3)
See also
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.