BC30638: Array bounds cannot appear in type specifiers
Array sizes cannot be declared as part of a data type specifier.
Error ID: BC30638
Example
The following example generates BC30638:
Dim array As Integer(8)
To correct this error
Specify the size of the array immediately following the variable name instead of placing the array size after the type, as shown in the following example:
Dim array(8) As Integer
Define an array and initialize it with the desired number of elements, as shown in the following example:
Dim array() As Integer = New Integer(8) {}
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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for