'ReDim' cannot change the number of dimensions of an array
You have attempted to use ReDim
to change the rank (number of dimensions) of an array. The ReDim
statement can be used to change the size of one or more dimensions of an array that has already been formally declared, but it cannot change the rank of an array.
Error ID: BC30415
- Make sure that you intend the rank instead of the sizes of the array, and if possible, use
Dim
to declare a new array with the desired rank.
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.
.NET feedback
.NET is an open source project. Select a link to provide feedback: