'arrList 数组
'x 检索的元素
Function IsInArray(arrList,x)
Dim flag
flag = false
for i=0 to Ubound(arrList)-1
if arrList(i)=x then
flag = true
end if
next
IsInArray = flag
End Function
Dim arrB(2)
arrB(0) = "1a"
arrB(1) = "2a"
For j=0 to ubound(arrB)-1
m = IsInArray(arr,arrB(j))
if m then Response.Write "yes"&"<br>" else Response.Write "no"&"<br>"
Next
m = IsInArray(arr,str)
if m then Response.Write "有这个元素" else Response.Write "没有这个元素"
'arrList 数组
'x 检索的元素
Function IsInArray(arrList,x)
Dim flag
flag = false
for i=0 to Ubound(arrList)
if arrList(i)=x then
flag = true
end if
next
IsInArray = flag
End Function
%>