Help with IndexOf

  • Thread starter Thread starter tony collier
  • Start date Start date
T

tony collier

Anyone know if there is an overloaded version of IndexOf which enables
skipping the first n instances of the search string and grabbing the (n+1)
th ?
 
tony said:
Anyone know if there is an overloaded version of IndexOf which enables
skipping the first n instances of the search string and grabbing the
(n+1) th ?

You can specify where to start searching so I'd put it in a loop using
the last position returned plus the length of the search string to
indicate a new starting position until I hit the Nth ocurrence or run
out of string.

--
There are 10 kinds of people. Those who understand binary and those who
don't.

http://code.acadx.com
(Pull the pin to reply)
 
Back
Top