Luc Devar:
> Now I want to simply find and replace some text in the 4DwritePro document
> before exporting in mime html. I am looking for a simple find and replace (WR
> find in the old 4D write). I have spent more than 2 hours trying to find a
> way with the documentation without success. I know this should be obvious but
> cannot find it. So I am asking for help as I cannot lose all this time on a
> simple command.
Hi Luc,
I had a bit of a struggle with this myself. WritePro is sometimes a lot more
compilcated than good old Write.
It boils down to this:
$lPosition:=Position("MySearchText";WP Get text($oMyWriteProObject;wk
expressions as space))
$oRange:=WP Text
range($oMyWriteProObject;$lPosition;$lPosition+Length("MySearchText"))
WP SET TEXT($oRange;"MyNewText";wk replace)
Hope that helps.
Greetings from Germany,
Bernd Fröhlich
**********************************************************************
4D Internet Users Group (4D iNUG)
Archive: http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:[email protected]
**********************************************************************