| Original Message |
(Login burger2227) R Posted Jul 25, 2012 5:33 AM
So you have to split up the string into sections:
text$ = "This is my sentence to change."
word1$ = "my"
word2$ = "your"
find = INSTR(text$, word1$)
start$ = LEFT$(text$, find - 1)
ending$ = RIGHT$(text$, LEN(text$) - (find + LEN(word1$) - 1))
PRINT start$ + word2$ + ending$
|
|
|