Guest User

Untitled

a guest
Sep 22nd, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. while (firstCharacter != -1)
  2. {
  3. firstCharacter = rtbTextPad.Text.IndexOf(Textt.findText, startIndex);
  4. lenghtText = Textt.findText.Length;
  5. secondCharacter = (firstCharacter + lenghtText) - 1;
  6. startIndex = secondCharacter;
  7. i++;
  8. System.Console.WriteLine("First occurrence: first:{0}, second:{1}, start:{2}, lenght:{3}", firstCharacter, secondCharacter, startIndex, lenghtText);
  9. }
Advertisement
Add Comment
Please, Sign In to add comment