asp中 <%%>中如何引用变量值,在线等待!!!!
Fori=LBound(UserStaArr)ToUBound(UserStaArr)'LBound()获取下标最小值,UBound()获取下标最大值named=User...
For i = LBound(UserStaArr) To UBound(UserStaArr)
'LBound()获取下标最小值,UBound()获取下标最大值
named =UserStaArr(i)%>
<%=named%>
<%
set rsUserSta(i)=server.CreateObject("adodb.recordset")
rsUserSta(i).open "Select weight From Research_SmallClass where SmallClassName='"&named&"'",conn,1,1
rsUserSta(i)("weight")
response.write "总分"&weight
rsUserSta(i).close
set rsUserSta(i)=nothing
%>
上面的代码中如何将rsUserSta(i) 中的(i)正确引用!!!急 展开
'LBound()获取下标最小值,UBound()获取下标最大值
named =UserStaArr(i)%>
<%=named%>
<%
set rsUserSta(i)=server.CreateObject("adodb.recordset")
rsUserSta(i).open "Select weight From Research_SmallClass where SmallClassName='"&named&"'",conn,1,1
rsUserSta(i)("weight")
response.write "总分"&weight
rsUserSta(i).close
set rsUserSta(i)=nothing
%>
上面的代码中如何将rsUserSta(i) 中的(i)正确引用!!!急 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询