0
I want to do a certain word search in another way, I just got from described below:
<%
mystring = "Como eu faço para separar uma string em várias strings?"
myarray = Split(mystring, " ")
For i = 0 to Ubound(myarray)
Response.Write i & " - " & myarray(i) & "<br>"
if myarray(0) = "Como" then
existe = "Sim"
Else
existe = "Nao"
end if
Next
Response.Write "Resposta Final >" & existe
%>
0 - Como
1 - eu
2 - faço
3 - para
4 - separar
5 - uma
6 - string
7 - em
8 - várias
9 - strings?
Final Answer >Yes
I want to search all over string which I have turned into an array, looking for no position myarray(0)
zero, for example, but for myarray(i)
, but the result is "No", I need to use this structure in another project that uses Checkbox’s and I will never know which position will come. It is possible to change to the form myarray(i)
.