这是一个asp.net的全文教程.里面还有数据库的数据.对初学者有很大的帮助
源代码在线查看: ch12-06-01.aspx
Ch12-06-01.aspx System.Array类
System.Array类 - 数组操作
' 声明一维数组
Dim WeekDays() As String = {"星期日","星期一","星期二","星期三", "星期四", "星期五","星期六" }
' 声明二维数组
Dim UserDatas(3, 7) As String
' 显示数组信息
Response.Write("WeekDays数组属于 " & WeekDays.Rank & " 维数组")
Response.Write("共有:" & WeekDays.Length & " 个元素")
Response.Write("索引下限:" & WeekDays.GetLowerBound(0) & "")
Response.Write("索引上限:" & WeekDays.GetUpperBound(0) & "")
Response.Write("UserDatas(3, 7)数组属于 " & UserDatas.Rank & " 维数组")
Response.Write("共有:" & UserDatas.Length & " 个元素")
Response.Write("第一维元素数量:" & UserDatas.GetLength(0) & "")
Response.Write("第二维元素数量:" & UserDatas.GetLength(1) & "")
Response.Write("第一维索引下限:" & UserDatas.GetLowerBound(0) & "")
Response.Write("第一维索引上限:" & UserDatas.GetUpperBound(0) & "")
Response.Write("第二维索引下限:" & UserDatas.GetLowerBound(1) & "")
Response.Write("第二维索引上限:" & UserDatas.GetUpperBound(1) & "")
%>