程序代码如下:for each x in RSspan.Fields
strLine= strLine & replace(x.value,";",".") & chr(9)
next
,可为什么每次总是提示:Microsoft VBScript 运行时错误 错误 '800a005e' 无效使用 Null: 'replace' /amtsystem/tj_te/exeQueryTJAMTCTR.asp,行100
。请指点,谢谢!
strLine= strLine & replace(x.value,";",".") & chr(9)
next
,可为什么每次总是提示:Microsoft VBScript 运行时错误 错误 '800a005e' 无效使用 Null: 'replace' /amtsystem/tj_te/exeQueryTJAMTCTR.asp,行100
。请指点,谢谢!
for each x in RSspan.Fields
if not isnull(x.value) then
strLine= strLine & replace(x.value,";",".") & chr(9)
end if
next
strLine= strLine & replace("" & x.value,";",".") & chr(9) '这样也行!
next
if not isnull(x.value) then
strLine= strLine & replace(x.value,";",".") & chr(9)
end if
next
for each x in RSspan.Fields
strLine= strLine & replace(iif(isnull(x.value),"",x.value),";",".") & chr(9)
next
iif肯定比if浪费时间!
所以绿豆的方法是最标准的方法!