日期:2014-05-17  浏览次数:21272 次

出了点小问题,请指教
错误类型:
Microsoft   VBScript   运行时错误   (0x800A000D)
类型不匹配:   '[string:   " "] '
/get.asp,   第   17   行

以下是第17行代码,请问这行问题出在哪里?

if   rs( "noweditor ")   <>   0   then                 ---------第17行
    if   cstr(rs( "noweditor "))   <>   cstr(session( "log "))   then
response.write   ( " <script> alert( '该笔记录有人处理 ');window.close(); </script> ")
    Response.End
    end   if
else
sql= "update   "   &database&   "   set   noweditor= ' "&session( "log ")& " '   where   id= "&id
        conn.execute   (sql)
        response.write   " <script> self.opener.location.reload(); </script> "
end   if

------解决方案--------------------
if trim(rs( "noweditor ")) <> "0 " then
------解决方案--------------------
if trim(rs( "noweditor ")) <> " "
------解决方案--------------------
确定是这一行出错吗? try: if rs( "noweditor ").value <> 0 then
------解决方案--------------------
if cint(rs( "noweditor ")) <> 0 then
------解决方案--------------------
你数据库里noweditor字段是什么类型的?
session( "log ")是什么类型的?
------解决方案--------------------
检查一下rs( "noweditor ")有没有值吧