|
-
Mar 18th, 2005, 01:33 AM
#1
Thread Starter
Lively Member
How to declare multi dimensional array
can any one tip me on How to declare and manipulate data with multi dimensional arrays.
store variables in to an array ( say arr1(5,5,5) ),
and how to assign array data to variables.
thanx in advance
-
Mar 18th, 2005, 02:01 AM
#2
Re: How to declare multi dimensional array
 Originally Posted by santosh66
can any one tip me on How to declare and manipulate data with multi dimensional arrays.
store variables in to an array ( say arr1(5,5,5) ),
and how to assign array data to variables.
thanx in advance
VB Code:
dim myarray(4,4,4) as integer ' 0-4 = 5 (5^3 = 125)
dim x%, y%, z%
for x=0 to 4
for y=0 to 4
for z=0 to 4
myarray(x,y,z) = x * y * z
next z
next y
next x
x = myarray(2,1,3)
msgbox x
It doesn't do much, but it does what you asked.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|