我用方法  
MyListI.Item(10) 的到list的地11个元素时我已经知道MyListI.Item(10)不存在 ,我想让她打印出不存在,而不想让他提示错误,怎么办if MyListI.Item(10)>0 thenrespose.wiret("不存在")
end if

解决方案 »

  1.   

    if MyListI(9)="" thenrespose.wiret("不存在")
    end if
      

  2.   

    If MyListI.GetUpperBound(0) > 10 Then
    ...
    End If
      

  3.   

    if MyListI.Item(10)!="" thenrespose.wiret("不存在")
    end if
      

  4.   

    arr.Length
    我估计是你想判断数组有多少个
    是吗??
    MyListI.length
      

  5.   

    ArrayList不能这样判断的,会提示索引为负
      

  6.   

    dim i as integerfor i=0 to arr.length-1
    if arr(i)="" then
    response.write("no")
    end if
      

  7.   

    if MyListI.Item(10)==null thenrespose.wiret("不存在")
    end if