Find and replace all occurences of a string inside the current paragraph.
I have done so much work and this is my last method to implement.
I want to get from the current active doc the current paragraph and replace all occurances of a string inside that paragraph with another string.
Say for example I have the following paragraph in a document:
"This is a sentence that. This is another sentence. This is also another sentence. The sentence."
If the user opens the document containing the paragraph and goes to that paragraph by clicking in any place in it,, I want to replace e.g.g "another sentence" with "some sentence".
But only in the current active paragraph in the active document.
I have found some code with F_ApiFind and F_ApiGetTextRange to get the current text selection but I cannot think a way to do it.
Message was edited by: Efstathios Chatzikyriakidis
