如果是按,号分割用Split函数就能解决这个问题
<%
Function ReLocation(Str,Num)
Dim tAry,i,Loc
Loc=-1
tAry=Split(Str,",")
For i=0 To Ubound(tAry)
If CInt(tAry(i))=Num Then
Loc=i
Exit For
End IF
Next
ReLocation=Loc
End Function
Dim tStr
tStr="7,8,9,10,11,15,25,81,1"
Respons.Write "字符串'"&tStr&"'中11在第"&ReLocation(tStr,11)&"位"
%>