简化代码
请帮我简化下面的代码,谢谢!
rs("zcg_bznr")=request.form("bznr0")+"|||"+request.form("bznr1")+"|||"+request.form("bznr2")+"|||"+request.form("bznr3")+"|||"+request.form("bznr4")+"|||"+request.form("bznr5")+"|||"+request.form("bznr6")
------解决方案--------------------大约如此
dim bznr[6]
dim i
for i=0 to 6
bznr[i] = request.form("bznr"+i)
end for
rs("zcg_bznr")= join(bznr,"
------解决方案--------------------
");
------解决方案--------------------request.form("bznr"+i)
应为
request.form("bznr"
&i)