小弟下了动网论坛,点击用户列表,就出现以下错误:
Microsoft VBScript 运行时错误 (0x800A005E)
无效使用 Null: 'Replace'
/dvbbs7.0.0/dvbbs7.0.0/toplist.asp, 第 144 行
具体代码:TempStr1 = template.html(8)
For i = 0 To Ubound(SQL,2)
TempStr2 = TempStr1
(144行) TempArray = Split(Dvbbs.HtmlEncode(Replace(SQL(3,i),"'","\'"
),"|||"
TempStr2 = Replace(TempStr2,"{$userid}",SQL(7,i))
TempStr2 = Replace(TempStr2,"{$username}",Dvbbs.HtmlEncode(SQL(0,i)))
TempStr2 = Replace(TempStr2,"{$adddate}",SQL(5,i)&""
TempStr2 = Replace(TempStr2,"{$userclass}",SQL(2,i))
TempStr2 = Replace(TempStr2,"{$article}",SQL(4,i))
TempStr2 = Replace(TempStr2,"{$wealth}",SQL(6,i))
TempStr2 = Replace(TempStr2,"{$homepage}",TempArray(0))
TempStr2 = Replace(TempStr2,"{$oicq}",TempArray(1))
TempStr3 = TempStr3 & TempStr2
Next