有啊,UBound(arrayname[, dimension])就可以阿
解决方案 »
- 如何打开指定路径的文件夹里excel文件并读取数据
- 想用WINSOCK做一个能在Inetnet上传送文件的东东,文件大小为500K到2M,不知能不能实现?
- rdo转ado问题
- 女排赢了,连搬3局。兴奋
- 学了SDK和MFC,工作需要想在尽量短的时间内搞定VB,推荐一本好书
- 哪为大侠知道如何在程序中调用Adobe Acrobat Reader打开Adobe Acrobat Reader格式的文件?
- 请教:VB监测PPT放映事件
- 客户端程序如何获得服务器系统时间???
- Set database = workspace.OpenDatabase (dbname, options, read-only, connect)的第二个和第四个参数是什么意思...
- 如何从一台Win9x向另外一台发送信息
- 快快拿分(马上给分,在线等待给分)
- 求救:在水晶报表里,在同一列中,如果相邻的两行数据相同,如何将他们合并成一行?
下界—LBOUND(数组名)
Returns the largest available subscript for the indicated dimension of an array.UBound(arrayname[, dimension])Arguments
arraynameRequired. Name of the array variable; follows standard variable naming conventions.dimensionOptional. Whole number indicating which dimension's upper bound is returned. Use 1 for the first dimension, 2 for the second, and so on. If dimension is omitted, 1 is assumed.Res
The UBound function is used with the LBound function to determine the size of an array. Use the LBound function to find the lower limit of an array dimension.The lower bound for any dimension is always 0. As a result, UBound returns the following values for an array with these dimensions:Dim A(100,3,4)
Statement Return Value
UBound(A, 1) 100
UBound(A, 2) 3
UBound(A, 3) 4
搜索Ubound看详细的资料