注册 登录
编程论坛 ASP技术论坛

报错找不到原因

youquan0352 发布于 2010-06-22 11:08, 346 次点击
错误类型:
Microsoft VBScript 运行时错误 (0x800A000D)
类型不匹配: '[string: ""]'
/nxTMIS/sparepart/outstorenew/allbill.asp, 第 64 行



    63    propertytag = request("propertytag")
    64     if  propertytag = 1 then
    65      tag1 ="应急板卡"
    66      end if
    67       if  propertytag = 2 then
    68      tag1 ="普通板卡"
    69      end if
    70        if  propertytag = 3 then
    71      tag1 ="光缆/线缆"
    72      end if
    73        if  propertytag = 4 then
    74      tag1 ="仪器仪表"
    75      end if
3 回复
#2
hams2010-06-22 11:42
先确定propertytag是什么类型的值
#3
hams2010-06-22 11:45
    63    propertytag = request("propertytag")
    64     if  propertytag = "1" then
    65      tag1 ="应急板卡"
    66      end if
    67       if  propertytag = "2" then
    68      tag1 ="普通板卡"
    69      end if
    70        if  propertytag = "3" then
    71      tag1 ="光缆/线缆"
    72      end if
    73        if  propertytag = "4" then
    74      tag1 ="仪器仪表"
    75      end if
#4
youquan03522010-06-22 14:05
回复 3楼 hams
确定是整型,没问题,其他页面都没问题,就这个查询页面出错
1