乱世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 使用C#,asp.net读取Excel文件并保存到Oracle数据库
  • ¥15 C# datagridview 单元格显示进度及值
  • ¥15 thinkphp6配合social login单点登录问题
  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配