String search from?

brainleak

Well-known member
Joined
Dec 20, 2016
Messages
54
Location
Barcelona area
Programming Experience
3-5
(Coming from vb6 and gradually learning vb.net)

I want to search String1 for occurrences of String2.

If I try String1.Contains(String2) is it possible to include as a parameter the specific position for search start within String1?
 
No, there is only one Contains method with one parameter, but you can use the IndexOf method where you can set start index, see String Methods (System)
 
Back
Top