Advertisement
Guest User

IM A FUCKING RETARD HELP

a guest
Oct 31st, 2014
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. Dim stringg, length, newstring, replace, initial, pos, first, second As String
  2. stringg = txtSentence.Text
  3. replace = txtSecond.Text
  4. initial = txtFirst.Text
  5. length = txtFirst.Text.Length
  6. pos = stringg.IndexOf(initial)
  7. first = stringg.Substring(0, pos)
  8. second = stringg.Substring(stringg, length + pos)
  9. newstring = first & replace & second
  10. txtResult.Text = newstring
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement