Re: Playing with multidimensional array!?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



"Claude Lachapelle" <ClaudeLachapelle@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:1BD75497-1FD8-41A2-A7C1-B1C53FB895B0@xxxxxxxxxxxxxxxx
Thanks a lot for your help.

Correct me if I'm wrong (I really found that unusual!), but when accessing
data into the two dimensions array, the first parameters is always the
column, and the second one the row...

I wouldn't say "always".

To read the data in my array you might use:

Dim iCol, iRow
For iRow = 0 To UBound(aMailboxes,2)
For iCol = 0 To UBound(aMailboxes,1)
WScript.Echo iRow & "." & iCOL & " = " & aMailboxes(iCol,iRow)
Next
Next

I'm always confused with that since others old programming languages are
functionning by beginning by the row...

I've worked in COBOL, Fortran, et.al. and it was I
(the progrmammer) that determined what index meant what.

[snip]


.