这是我的数组
<%
Dim myFixedArray
myFixedArray(0) = "Albert Einstein"
myFixedArray(1) = "Mother Teresa"
myFixedArray(2) = "Bill Gates"
myFixedArray(3) = "Martin Luther King Jr."
%>现在我用来获取值的是
<%
For i=0 to 3
response.write myArray(i) & "<br>"
Next
%>我需要取“比尔盖茨”数组号
我需要的是"2“
如何在不使用循环的情况下查找结果?
发布于 2010-02-10 18:59:11
这个怎么样?
<%
For i=0 to 3
If myArray(i) = "Bill Gates" Then
mynumber = i (or return i)
End If
Next
%> https://stackoverflow.com/questions/2236188
复制相似问题