Howdy! ![]()
I’m having a lot of problems with this ^*$%@^ NotesRichTextNavigator!!! Here’s what I want to do:
-
search a string in a RT field, and return the position.
-
use RT’s “.AppendTable” to replace the search string.
That’s it! Why is it so bloody confusing??? Here’s a snippet of code, although to be honest, I’ve tried many variations:
…
Set gnrti = doc.GetFirstItem(“Body”)
Set nrtn = gnrti.CreateNavigator
Set nrtr = gnrti.CreateRange
Call nrtn.FindFirstString(“[srchString]”)
Call nrtr.SetBegin(nrtn)
Call gnrti.AppendTable(4, 5,…)
Call nrtr.SetEnd(nrtn)
(defining values in table, etc…)
Does anyone have a good example of this? The table gets shown correctly, but always at the end of the Rich text field. I’ve done some tests, and I’d like it to show where “[srchString]” is.
Any help would be greatly appreciated!
Thanks, in advance,
Steve in Montreal!
“I don’t suffer from insanity. I’m enjoying every minute of it.”