VBGamer
Content
News
Tutorials
Articles
Reviews
Post
News
Games
Resources
Games List
Links
Files
Forum
Other
Link to us
News ticker
Coded In VB
Configure
Console
Name
Pass
Register
Forgot your Password?
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
Topic
Cptn-Grey
Neophyte
8 Posts
Posted - Jan 27 2006 : 7:41:23 PM
does anyone know if vb6 supports multidimensional arrays?
Lachlan87
Moderator
USA
160 Posts
Posted - Jan 28 2006 : 09:26:46 AM
I believe this is what you want:
Dim a(9, 9) As Integer
a(4, 7) = 1337
Cptn-Grey
Neophyte
8 Posts
Posted - Jan 29 2006 : 02:17:56 AM
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. :)
Eric Coleman
Gladiator
USA
811 Posts
Posted - Jan 29 2006 : 3:32:04 PM
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
Cptn-Grey
Neophyte
8 Posts
Posted - Jan 30 2006 : 7:44:22 PM
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
Topic
New Topic
Reply to Topic
Printer Friendly
Jump To:
Select Forum
VBGamer
VBGamer
VBGC and The Nexus
--------------------
Home
Active Topics
Frequently Asked Questions
Member Information
Search Page
VBGamer
©
This page was generated in 0.08 seconds.
Snitz Forums 2000
Copyright © 2002 - 2004 Eric Coleman, Peter Kuchnio , et. al.