asp代码运行时出错,错误类型:类型不匹配: 'ubound' 是怎么回事?

这段代码主要是实现基础的功能,代码如下:<html><head><title>机构</title><scriptla... 这段代码主要是实现基础的功能,代码如下:<html><head><title>机构</title><script language="javascript"></script><META content="Microsoft FrontPage 4.0" name=GENERATOR></HEAD><%sCartItemNums = session("cartitemnumarray")nCartItemQtys = session("cartitemqtyarray")nNumCartItems = ubound(sCartItemNums)'Determine the mode of this page's operation. If we got here from a' link that had a "mode" querystring of "add", mode is add:sMode = request.querystring("mode")'Or, we could have gotten here from a form:select case request.form("cmdSubmit")case "结帐" sMode = "checkout"case "改变数量" sMode = "recalc"'case "继续购物"'sMode = "continue"end selectif sMode = "add" thennThisItemIndex = 0sItemNo = ucase(request.querystring("itemno"))if nNumCartItems > 0 thenfor i = 1 to nNumCartItemsif ucase(scartitemnums(i)) = sItemNo thennThisItemIndex = iexit forend ifnextend ifif nThisItemIndex = 0 then nThisItemIndex = nNumCartItems + 1redim Preserve sCartItemNums(nThisItemIndex)redim Preserve nCartItemQtys(nThisItemIndex)sCartItemNums(nThisItemIndex) = sItemNonCartItemQtys(nThisItemIndex) = 1elsenCartItemQtys(nThisItemIndex) = nCartItemQtys(nThisItemIndex) + 1end ifsession("cartitemnumarray") = sCartItemNumssession("cartitemqtyarray") = nCartItemQtysnNumCartItems = ubound(sCartItemNums)end ifif sMode = "recalc" or sMode = "checkout" or sMode = "continue" thenfor i = 1 to nNumCartItemsnThisQty = int(request.form("txtItemQty" & i))nCartItemQtys(i) = nThisQtynextsession("cartitemnumarray") = sCartItemNumssession("cartitemqtyarray") = nCartItemQtysend ifselect case sModecase "continue"end selectset dbMain = server.createobject("ADODB.Connection")connstr 展开
 我来答
gzlingye
2011-08-01 · TA获得超过121个赞
知道小有建树答主
回答量:276
采纳率:100%
帮助的人:227万
展开全部
类型不匹配: 'ubound' 是指 ubound函数中的参数不是一个合法的数组
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式