源程序如下:
<html>
<head>
<title>动态数组应用实例</title>
</head>
<body>
<%
ReDim Array1(10)
Dim i '设置循环变量
For i = 0 To 10
Array1(i) = 100
Next
ReDim Preserve Array1(5)
Redim Preserve Array1(10)
For i = 0 To 10
Response.Write "Array1("&CStr(i)&")="&CStr(Array1(i))&"<br>"
Next
%>
</body>
</html>