Velocity Reviews > how do dim array?

# how do dim array?

William Morris
Guest
Posts: n/a

 01-16-2004
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...

"Lasse Edsvik" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello
>
> how do you dim a 3d (?) array?
>
> somearray(x,y) ?
>
> /Lasse
>
>

Lasse Edsvik
Guest
Posts: n/a

 01-16-2004
Hello

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

somearray(x,y) ?

/Lasse

Brynn
Guest
Posts: n/a

 01-16-2004

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

what are you trying to do exactly? =)

Brynn
www.coolpier.com

On Fri, 16 Jan 2004 16:33:02 +0100, "Lasse Edsvik" <(E-Mail Removed)>
wrote:

>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

 Thread Tools

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is OffTrackbacks are On Pingbacks are On Refbacks are Off Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Edward A. Falk C Programming 1 04-04-2013 08:07 PM Florian Kaufmann C++ 1 04-28-2010 01:21 PM Denis Palas Java 1 11-11-2006 09:22 AM Dragon MCSE 6 10-15-2004 06:43 PM VB Programmer ASP .Net 3 07-13-2003 02:51 AM

Advertisments