查找二维数组的大小 [英] find size of a Two-dimensional array
本文介绍了查找二维数组的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好.
我有一个二维数组.
Hello every body.
I have a Two-dimensional array. How to find the size of array?
推荐答案
请尝试以下代码以获取数组的两个维度
VB.NET:
Hi,
please try the following code to get the two dimensions for your array
VB.NET:
Dim dimensionOne As Integer = myArray.GetLength(0)
Dim dimensionTwo As Integer = myArray.GetLength(1)
对于VB6,您可以按以下说明使用UBound函数:
http://msdn.microsoft.com/en-us/library/95b8f22f%28v = vs.90%29.aspx [ ^ ]
For VB6, you can use the UBound function as described here:
http://msdn.microsoft.com/en-us/library/95b8f22f%28v=vs.90%29.aspx[^]
这篇关于查找二维数组的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文