Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 889 Bytes

bc30568.md

File metadata and controls

36 lines (26 loc) · 889 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Array initializer has <number> too many elements
Array initializer has <number> too many elements
07/20/2015
bc30568
vbc30568
BC30568
5d81f73d-1ce1-42a0-8cf5-f564d6094617

Array initializer has <number> too many elements

Your array initializer contains too many elements.

Error ID: BC30568

To correct this error

  • If you are using nested array literals to create a jagged array, enclose each subarray in parentheses. For example, if your jagged array definition is:

    Dim jaggedValues =  {{1, 2}, {2, 3, 4}}

    you can change it to:

    Dim valuesjagged = {({1, 2}), ({2, 3, 4})}
  • Use ReDim to change the size of the array.

See also