如何在VB6中计算二维数组上的项目数 [英] how to count the number of items on 2dimensional array in VB6
本文介绍了如何在VB6中计算二维数组上的项目数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有二维数组,但我不知道要在VB6中计算此数组的项目数是多少?
例如:
我的数组是arr(a,n),我知道a但n不是(n是change).
当我使用时:
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
如何计算arr(i,n)的项数?
你能帮我吗?
谢谢! :doh:
How to count the number of items of arr(i,n)?
can you help me?
thanks! :doh:
推荐答案
Dim count as integer = arr.Length
这篇关于如何在VB6中计算二维数组上的项目数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文