[讨论]无效使用 Null : "replace" 的问题
代码部分
If Rs(9, i) > 1024 Then
s = Replace(s, "{$softsize}", Round(Rs(9, i) / 1024, 2) & " MB")
Else
s = Replace(s, "{$softsize}", Rs(9, i) & " KB")
End If
s = Replace(s, "{$excerpt}", Rs(13, i))
tempStr = tempStr & s
s = Null
Next
Rs = Null
Set sqlRs = Nothing
End If
If Rs(9, i) > 1024 Then
s = Replace(s, "{$softsize}", Round(Rs(9, i) / 1024, 2) & " MB")
Else
s = Replace(s, "{$softsize}", Rs(9, i) & " KB")
End If
s = Replace(s, "{$excerpt}", Rs(13, i))
tempStr = tempStr & s
s = Null
Next
Rs = Null
Set sqlRs = Nothing
End If
问题补充:s = Replace(s, "{$excerpt}", Rs(13, i))
报错行
加上
if not isnull({$excerpt}) then
s = Replace(s, "{$excerpt}", Rs(13, i))
报错
Microsoft VBScript 编译器错误 (0x800A0408)
无效字符
/site/softdown/cls_MakeHtml.asp, line 1134, column 14
if not isnull({$excerpt}) then
报错行
加上
if not isnull({$excerpt}) then
s = Replace(s, "{$excerpt}", Rs(13, i))
报错
Microsoft VBScript 编译器错误 (0x800A0408)
无效字符
/site/softdown/cls_MakeHtml.asp, line 1134, column 14
if not isnull({$excerpt}) then