ASP出现无效的过程调用或参数: 'asc'

来源:百度知道 编辑:UC知道 时间:2024/06/17 13:57:49
错误类型:
Microsoft VBScript 运行时错误 (0x800A0005)
无效的过程调用或参数: 'asc'
if abs(asc(hy_xingming))>127 then
这个有错吗??/

检查一下你的hy_xingming的值
可能为空,为空时调用 asc函数就会出借

if trim(hy_xingming)="" then
response.write "参数不能为空"
response.end
else
if abs(asc(hy_xingming))>127 then
....你自己的程序
end if
end if

asc这个函数你有没有定义过、你要是去掉'asc' 应该不会出错了吧