To find first occurance of a character in a string using asp

by Nirmala 2009-08-24 10:18:29

Hi...
To find the first occurance of character in a string use the below code.
<% Dim str
str="dfhgdsfghfdhfghaqew"
str=InStr(str,"h")
Response.Write(str)%>

Output:3

Tagged in:

1064
like
1
dislike
0
mail
flag

You must LOGIN to add comments