dchau12
asked on
how to find the end of the string occurance
I can find the beginnning of the string occurance with the indexof function. How do I find the end of the string occurance?
If localUnParsedAddress.Conta ins(" Drive ") Then
'This gives me the beginning of the string occurance. Need the end
x = localUnParsedAddress.Index Of(" Drive ")
EndOfOccurance = ???
End If
If localUnParsedAddress.Conta
'This gives me the beginning of the string occurance. Need the end
x = localUnParsedAddress.Index
EndOfOccurance = ???
End If
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
good enough. Thanks Angell.
>I need to search for a lot of different string though.
you can put the searchable items into an array, and loop the array...
you can put the searchable items into an array, and loop the array...
ASKER
If localUnParsedAddress.Conta
'This gives me the beginning of the string occurance. Need the end
x = localUnParsedAddress.Index
EndOfOccurance = ???
End If