Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
C# Helper...
 
XML RSS Feed
Follow VBHelper on Twitter
 
 
 
MSDN Visual Basic Community
 
 
 
 
 
 
TitleRedimension multiple arrays in a single statement in VB.NET
DescriptionThis example shows how to redimension multiple arrays in a single statement in VB.NET.
KeywordsReDim, array
CategoriesMiscellany, 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.
 
 
Copyright © 1997-2010 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated