网站首页  汉语字词  英语词汇  考试资料  写作素材  旧版资料

请输入您要查询的范文:

 

标题 asp提示无效使用 null: replace
范文
    使用replace来将数据库里读出来的数据替换,如果字段不为空是正常,但如果
    为空时就出现以下提示:
    microsoft vbscript 运行时错误 错误 '800a005e'
    无效使用 null: 'replace'
    主要问题就是sqlserver的字段为null,所以不能简单的为空判断,只能使用isnull
    可以先判断
    if isnull(rs(coutent))=false then
    response.write(null)
    else
    response.write replace(rs(coutent),chr(13),<br/>)
    end if
    测试:
    代码如下:
    if isnull(keyword)=true then keyword=dxy_title
    if isnull(descriptions)=true then descriptions=dxy_title
随便看

 

在线学习网范文大全提供好词好句、学习总结、工作总结、演讲稿等写作素材及范文模板,是学习及工作的有利工具。

 

Copyright © 2002-2024 cuapp.net All Rights Reserved
更新时间:2025/5/14 12:21:06