Click here to Skip to main content
15,889,992 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have two dimensional array but I don't know hot to count the number of item of this array in VB6

for example:
my array is arr(a,n), and I knew a but n is not(n is change).
when I use:
dim icount as integer
for i=0 to a
    icount=Ubound(arr(i,n))
next i

How to count the number of items of arr(i,n)?

can you help me?
thanks! :doh:
Posted

1 solution

VB
Dim count as integer = arr.Length


 
Share this answer
 
Comments
ngthtra 23-Dec-10 20:33pm    
IN VB6 there is not Length property for array. and I want to count second dimensional of array.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900