乱世79115085 2022-07-24 03:21 采纳率: 100%
浏览 56
已结题

ASP语言溢出: 'cint' 报错Microsoft VBScript 运行时错误 '800a0006'电脑配置单

Microsoft VBScript 运行时错误 '800a0006'

溢出: 'cint'

\admin\savenclass.asp, line 54
rs("money")=cint(request("nclassmoneya"))


添加 34799 数报错 如何解决
ASP电脑配置单网站 源码 不是ASPNET


<%
dim action,url,i,abc,anclassid,anclass,ya,yb,nclassname

anclassid=request("anclassid")
anclass=request.QueryString("anclass")

if trim(anclass)="" or trim(anclassid)="" then
response.write ""
end if

url="http://" & Request.ServerVariables("http_host") & finddir(Request.ServerVariables("url"))
action=request.QueryString("action")

select case action

'//添加新数据
case "add"
ya=request("nclass2")
if len(trim(ya))=0 then
response.write ""
else
nclassname=trim(request("nclass2"))
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from diy_nclass where nclass='"&nclassname&"' and anclassid="&request("anclassid"),conn,1,3
if rs.eof and rs.bof then
rs.AddNew
rs("anclassid")=cint(request("anclassid"))
rs("nclass")=trim(request("nclass2"))
rs("nclassidorder")=cint(request("nclassidorder2"))
rs("money")=cint(request("nclassmoney"))
rs("danwei")=request("danwei")
rs.Update
rs.Close
set rs=nothing
else
response.write""
response.end
end if
response.redirect url&"nclass.asp?id="&anclassid&"&anclass="&anclass
end if

'//修改数据
case "edit"
yb=request("nclass")
if len(trim(yb))=0 then
response.write ""
else
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from diy_nclass where nclassid="&request.QueryString("id"),conn,1,3
rs("nclass")=trim(request("nclass"))
rs("nclassidorder")=cint(request("nclassidorder"))
rs("money")=cint(request("nclassmoneya"))
rs("danwei")=trim(request("danweia"))
rs.update
rs.close
set rs=nothing
response.redirect url&"nclass.asp?id="&anclassid&"&anclass="&anclass
end if

'//删除数据
case "del"
anclassid=request.QueryString("anclassid")
conn.execute ("delete from diy_nclass where nclassid="&request.QueryString("id"))
response.redirect url&"nclass.asp?id="&anclassid&"&anclass="&anclass
end select
%>

<%
Function finddir(filepath)
finddir=""
for i=1 to len(filepath)
if left(right(filepath,i),1)="/" or left(right(filepath,i),1)="" then
abc=i
exit for
end if
next
if abc <> 1 then
finddir=left(filepath,len(filepath)-abc+1)
end if
end Function
%>


  • 写回答

2条回答 默认 最新

  • chuifengde 2022-07-24 20:50
    关注

    cint 改成clng

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

问题事件

  • 系统已结题 8月2日
  • 已采纳回答 7月25日
  • 修改了问题 7月25日
  • 修改了问题 7月24日
  • 展开全部

悬赏问题

  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测