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
参考上述页面。