rtLib — Notes Rich Text Management Library Documentation of rtLib — Notes Rich Text Management Library Download rtLib — Notes Rich Text Management Library FAQ of rtLib — Notes Rich Text Management Library Purchase rtLib — Notes Rich Text Management Library Feedback about rtLib — Notes Rich Text Management Library
rtItem

replace

Start searchMail feedback

rtItem


Container
NotesRichTextItem



ExportRTF
New
refresh
replace
update

version 1.5

Sub replace (fromString As String, toString As String, flags As Long, relative, ctxFrom, ctxTo)

Text replace routine. For more flexible, but slower routine see class rtContainer, Find and Replace methods. Use Update method to write data to item before saving document (or opening without saving).


fromString

string to search for

toString

string to replace with

flags

RT_REPLACE_ALL
RT_FIND_BEFORE
RT_FIND_AFTER
or any combination.
RT_REPLACE_ALL or RT_FIND_BEFORE or RT_FIND_AFTER will replace all instances of source string between phrases defined by parameter relative

relative

either String: if flag RT_FIND_BEFORE phrase that marks the end of replace area, if set RT_FIND_AFTER - marks begining of area. If both flags are set -- replace expects array with 2 values -- val(0) - start of replace, val(1) - end of replace area. In all cases start and end phrases are not included in search area.

ctxFrom and ctxTo

reserved for future use


Quick replace Anchors