how do dim array?

W

William Morris

1 dimensional array: dim myArray(0)
2 dimensional array: dim myArray(0, 0)
3 dimensional array: dim myArray(0, 0, 0)
4 dimensional array: dim myArray(0, 0, 0, 0)

1 dimensional dynamic array:
dim myArray()
redim myArray(0)

2 dimensional dynamic array:
dim myArray()
redim myArray(0, 0)
redim myArray(0, ubound(myArray, 2) + 1) '--- note that you can only
change the last dimension...

3 dimensional dynamic array:
dim myArray()
redim myArray(0, 0, 0)
redim myArray(0, 0, ubound(myArray, 2) + 1) '--- note that you can only
change the last dimension...
 
B

Brynn

somearray(x,y) would be defining a 2d array

what are you trying to do exactly? =)

Brynn
www.coolpier.com




Hello

how do you dim a 3d (?) array?

somearray(x,y) ?

/Lasse

I participate in the group to help give examples of code. I do not guarantee the effects of any code posted. Test all code before use!

Brynn
www.coolpier.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top