用dw mx自动生成的代码怎么会出错?
qdpb 2003-09-30 05:30:34 <%@LANGUAGE="VBSCRIPT"%>
<!--#include file="Connections/byxt.asp" -->
<%
Dim Recordset1
Dim Recordset1_numRows
Set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_byxt_STRING
Recordset1.Source = "SELECT userid,username FROM user"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 1
Recordset1.Open()
Recordset1_numRows = 0
%>
<%
Dim Repeat1__numRows
Dim Repeat1__index
Repeat1__numRows = 2
Repeat1__index = 0
Recordset1_numRows = Recordset1_numRows + Repeat1__numRows
%>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>
<table border="1">
<tr>
<td>userid</td>
<td>username</td>
</tr>
<% While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF)) %>
<tr>
<td><%=(Recordset1.Fields.Item("userid").Value)%></td>
<td><%=(Recordset1.Fields.Item("username").Value)%></td>
</tr>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Recordset1.MoveNext()
Wend
%>
</table>
结果
序号 类别 作者
Microsoft VBScript 编译器错误 错误 '800a03f6'
缺少 'End'
/iisHelp/common/500-100.asp,行242
Microsoft VBScript 运行时错误 错误 '800a01a8'
缺少对象
/byx/TMP84q4qlzupj.asp,行36