以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  检验上述代码错哪儿了  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=6244)

--  作者:lpxjw_zyl
--  发布时间:2010/3/20 9:20:00
--  检验上述代码错哪儿了
Dim cmd As New SQLCommand
Dim dt As DataTable
cmd.C
cmd.CommandText = "SELECT * From {xssj}"
dt = cmd.ExecuteReader()
for i as Integer = 1 to dt.datarows.count - 1
    for c as Integer = 1to dt.datacols.count - 1
        if DataTables("评分标准").datarows(i)(c) =  dt.datarows(i)(c) then
            output.show("有错误")
        end if
    next
next
检验上述代码错哪儿了

--  作者:lxl
--  发布时间:2010/3/20 10:24:00
--  

for c as Integer = 1to dt.datacols.count - 1
连在一起了。

其他错误看不出来。系统报什么错?


--  作者:mr725
--  发布时间:2010/3/21 0:08:00
--  
也许是 DataTables("评分标准")的行数不够造成的。