ASP How to clear array 如何清空数组
来源:互联网 发布:华讯网络 华三 编辑:程序博客网 时间:2024/04/29 03:31
Discuss Clear array? in the ASP Programming forum on Dev Shed.
Clear array? ASP Programming forum discussing Active Server Pages coding techniques and problem solving methods. Use VBScript or Jscript to make dynamic web applications.
first method:
dim MyArray()
do while not rs.eof
response.write(rs("id")&"<br>")
response.write("record content: <br>")
redim MyArray(2)
MyArray(0) = rs("part_description1")
MyArray(1) =rs("part_description2")
MyArray(2) =rs("part_description3")
Sentence = JOIN(MyArray)
response.write(Sentence)
response.write("<br>")
loop
scond method:
dim MyArray(2)
do while not rs.eof
response.write(rs("id")&"<br>")
response.write("record content: <br>")
MyArray(0) = rs("part_description1")
MyArray(1) =rs("part_description2")
MyArray(2) =rs("part_description3")
Sentence = JOIN(MyArray)
Erase MyArray
response.write(Sentence)
response.write("<br>")
loop
http://forums.devshed.com/asp-programming-51/clear-array-405788.html
参考上述页面。