Thanks a lot for ur replies.
But I m afraid, i cud not find CONTAINS for STRING, it exist for STRINGCOLLECTIO N... :(
so i will be using the INDEX method. but even this method tells if there is an occurrence or not.
what if i want to know the TOTAL no. of occurrences of the word "FROM" in the statement ?
Thanks :)
User Profile
Collapse
-
-
vb.net - finding a substring in a string
Hi,
I m currently working in VB .NET 2003.
I have the following string:
sBIG = "A final Goodbye from Greats"
I need to find whether the above word contains any word say "from".
I could not find a method in VB.net that can provide me the result.
Thanks,
No activity results to display
Show More
Leave a comment: