Array elements - counting

  • Thread starter Thread starter john sutor
  • Start date Start date
J

john sutor

If you are working with a 2 dimensional array with 3 elements per record
(0,0)
(0,1)
(0,2)

How do you get the correct count of records in the Array? The count method
give you back a count of all of the elements.
 
john sutor said:
If you are working with a 2 dimensional array with 3 elements per record
(0,0)
(0,1)
(0,2)

Do you mean a proper two-dimensional rectangular array, or an array of
arrays? My guess is the former - in which case, use GetUpperBound(0) to
get the size of the first dimension, and GetUpperBound(1) to get the
size of the second. (I'm assuming that the lower bound of each is 0.)
 
Back
Top