Post

 Resources 

Console

Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 VBGamer
 VBGamer
 simple vb question
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Cptn-Grey
Neophyte

8 Posts

Posted - Jan 27 2006 :  7:41:23 PM  Show Profile  Reply with Quote
does anyone know if vb6 supports multidimensional arrays?

Lachlan87
Moderator

USA
160 Posts

Posted - Jan 28 2006 :  09:26:46 AM  Show Profile  Reply with Quote
I believe this is what you want:

Dim a(9, 9) As Integer

a(4, 7) = 1337


Go to Top of Page

Cptn-Grey
Neophyte

8 Posts

Posted - Jan 29 2006 :  02:17:56 AM  Show Profile  Reply with Quote
Thanks for the tip. i allready knew how use multidimensional arrays in c++ but wasn't even sure if they exsisted in vb. thanks again. :)
Go to Top of Page

Eric Coleman
Gladiator

USA
811 Posts

Posted - Jan 29 2006 :  3:32:04 PM  Show Profile  Visit Eric Coleman's Homepage  Reply with Quote
And you can use UBound and LBound to get the respective bounds of each array dimension.

Debug.print UBound(a, 1) 'upper bound of first array dimension
Debug.print UBound(a, 2) 'upper bound of second array dimenions
Go to Top of Page

Cptn-Grey
Neophyte

8 Posts

Posted - Jan 30 2006 :  7:44:22 PM  Show Profile  Reply with Quote
thanks for the info. that will probably come in handy somewhere down the road.

Edited by - Cptn-Grey on Jan 30 2006 7:45:14 PM
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
VBGamer © Go To Top Of Page
This page was generated in 0.08 seconds. Snitz Forums 2000

Copyright © 2002 - 2004 Eric Coleman, Peter Kuchnio , et. al.