|
有哪位大大可以幫我看怎除錯嗎>"< 看了兩天 快瘋了 錯誤類型:
Microsoft VBScript 執行階段錯誤 (0x800A0009) 陣列索引超出範圍: 'i'
function CookieToCart(cookiename) dim myarray(5,50) mystring=Request.Cookies(cookiename) productarray=split(mystring,"|") for j=0 to ubound(productarray) itemarray=split(productarray(j),"^") for i=0 to 5 if itemarray(i) <> "" then myarray(i,j)=itemarray(i) else myarray(i,j)=null end if next next CookieToCart=myarray end function |