求助帮助,非常感谢!!编译器错误 (0x800A03FB) 缺少 'Loop'

来源:百度知道 编辑:UC知道 时间:2024/06/01 18:43:30
错误类型:
Microsoft VBScript 编译器错误 (0x800A03FB)
缺少 'Loop'
/sgg/project.asp, 第 79 行

代码如下:
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="10" rowspan="4"> </td>
<td height="30" align="left" valign="middle"><span style=" color:#666666">
<%
iF id <> "" then
Set Rs = Execute("Select [Name] From Proclass where id = "&id)
iF Not(rs.eof) and Not(rs.bof) then response.Write rs(0)
Set Rs = Nothing
End iF
%>
</span></td>
<td width="20" rowspan="4"> </td>
</tr>
<tr>
<td height="7" align="center" valign="middle"><marquee scrollamount="2" behavior="alte

你的代码错误的原因在于对象的重定义
具体点说就是你结构和思路出现问题
你看下你的结构
Do while Not(rs.eof) and Not(rs.bof) and i < pagesize

Do while Not(rs.eof) and Not(rs.bof)

LOOP
LOOP

你的两个页面都 使用的rs作为记录集的名称,结果include里面循环的时候直接就把所有的都循环完了,所以出现错误

解决方法:把里面或者外面的rs改一个名字