Microsoft VBScript 运行时错误 错误 '800a0009' 下标越界: '[number: 0]' 该怎么改???急!!
代码:FunctiongetFromStr(playurl)ifisNul(playurl)thengetFromStr="":ExitFunctiondimplayur...
代码:
Function getFromStr(playurl)
if isNul(playurl) then getFromStr="":Exit Function
dim playurlArray,playurlLen,i,span1,span2,urlstr:span1="$$$":span2="$$"
playurlArray=split(playurl,span1):playurlLen=ubound(playurlArray)
for i=0 to playurlLen
if i=playurlLen then urlstr=urlstr&split(playurlArray(i),span2)(0) else urlstr=urlstr&split(playurlArray(i),span2)(0)&"," 【错误代码行】
next
getFromStr=urlstr
End Function 展开
Function getFromStr(playurl)
if isNul(playurl) then getFromStr="":Exit Function
dim playurlArray,playurlLen,i,span1,span2,urlstr:span1="$$$":span2="$$"
playurlArray=split(playurl,span1):playurlLen=ubound(playurlArray)
for i=0 to playurlLen
if i=playurlLen then urlstr=urlstr&split(playurlArray(i),span2)(0) else urlstr=urlstr&split(playurlArray(i),span2)(0)&"," 【错误代码行】
next
getFromStr=urlstr
End Function 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询