1
<body>
2
<h1>获得数组维数的最大索引值</h1>
3
<%
4
dim arrayA(10) as integer
5
response.write("获取一维数组的最大索引值,结果为" & ubound(arrayA) & "<br>")
6
dim arrayB(15,20) as integer
7
response.write("获取二维数组第一维度的最大索引值,结果为"& ubound(arrayB,1) &"<br>")
8
response.write("获取二维数组第二维度的最大索引值,结果为"& ubound(arrayB,2)&"<br>")
9
%>
10
</body>
Dim ArrayA as integer() = (1,2,3,4,5)
相当于声明一个ArrayA(4)的一维数组
posted on 2006-02-06 20:44
The Game, tomtom 阅读(651)
评论(0) 编辑 收藏 所属分类:
die