報錯內容是:Microsoft VBScript 運行時錯誤 錯誤 '800a000d'類型不匹配: 'UBound'/incs/config.asp,行 1197config.asp第1197行的內容是:for tempc=0 to ubound(tempvar)以下是部分內容:function getwebnav(byval pdttpe,byval pcid)if not chk_int(pcid) thenpcid=SafeRequest("pcid")end iftempvar=application("pl_menu_"&pdttpe)for tempc=0 to ubound(tempvar)tempv=tempvar(tempc)if instr(tempv,":") thentemppcid=getvalsec(tempv,":",1)if not chk_int(pcid) thenpdtclsnme=getvalsec(tempv,":",2)pcid=temppcidexit forelseif cint(pcid)=cint(temppcid) thenpdtclsnme=getvalsec(tempv,":",2)exit forend ifend ifnextsession("pdtclsnme")=pdtclsnmesession("pcid")=pcidtempvs=application("pl_menutpe")for myi=0 to ubound(tempvs)tempv=tempvs(myi)if lcase(left(tempv,3))=lcase(pdttpe) thentempp=right(tempv,len(tempv)-instr(tempv,":"))tempp=left(tempp,instr(tempp,":")-1)session("pdttpenme")=temppend ifnextend function
在asp中類型不匹配: 'UBound' 這是為什么呢?
aluckdog
2022-04-01 11:07:38