By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,963 Members | 1,046 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,963 IT Pros & Developers. It's quick & easy.

How to declare Multidimensional array in VB

P: 17
hai friends plz help me in this matter, i want to know really about the declaration of multidimensional array in VB. plz do reply
Apr 9 '08 #1
Share this Question
Share on Google+
1 Reply


jeffstl
Expert 100+
P: 432
hai friends plz help me in this matter, i want to know really about the declaration of multidimensional array in VB. plz do reply
To declare one or to utilize one?

Delcaring one should not be too difficult, especially if you know the dimensions you need.

Expand|Select|Wrap|Line Numbers
  1. dim MyArr(15,15,15) as Array
  2.  
This is a x,y,z array.

If you dont know the size then you can use UBound to limit your loops and code.

Expand|Select|Wrap|Line Numbers
  1. For x=0 to UBound(MyArr,3)
  2.      'loops through array
  3. Next x
  4.  
Apr 9 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.