array.length - passing array in Methods/Functions

IneedaSmoke

Active member
Joined
Mar 4, 2008
Messages
26
Programming Experience
Beginner
Hey all, got another question. I'm having some difficulty getting the array.length to work correctly when I pass an array through a a method or function.

If I pass an array through, then I use array.length; I get the length of columns X rows in a 2d array.

The quick fix i've done is to simply divide by the number of columns but this doesn't seem very 'elegant' and I'm afraid i'm missing some larger concept that may bite me in the buttox later.

Any discussion on this would be very helpful.

Thanks!
 
Back
Top