|
|
Title | Redimension multiple arrays in a single statement in VB.NET |
Description | This example shows how to redimension multiple arrays in a single statement in VB.NET. |
Keywords | ReDim, array |
Categories | Miscellany, Software Engineering |
|
|
Simply separate the arrays with a comma in a single ReDim statement.
|
|
Dim x(), y() As Integer
ReDim x(4), y(4)
|
|
This would make the most sense when the arrays are closely related, perhaps even if they always have the same bounds. It could be confusing if the are unrelated.
|
|
|
|
|
|