谁能帮我解决一下ASP的这个问题? Microsoft VBScript 运行时错误 错误 '800a0009'
Microsoft VBScript 运行时错误 错误 '800a0009' 下标越界: '[number: 1]'
/bbs/Inc/YX_Cls.Asp,行 395
代码如下:
Function GetIp(Ip,IpNum)
Dim Arr_Ip
If Ip="" Then Exit Function
Arr_Ip=split(Ip,".")
Select Case IpNum
Case "1"
GetIp=Arr_Ip(0) & ". * . * . * "
Case "2"
GetIp=Arr_Ip(0) & "." & Arr_Ip(1) & ". * . * " (这是395行)
Case "3"
GetIp=Arr_Ip(0) & "." & Arr_Ip(1) & "." & Arr_Ip(2) & ". * "
Case "4"
GetIp=Arr_Ip(0) & "." & Arr_Ip(1) & "." & Arr_Ip(2) & "." & Arr_Ip(3)
Case Else
GetIp=" * . * . * . * "
End Select
End Function