User Tools

Site Tools


replacertf_code_template.htm
Navigation:  Templates > Guide to all Templates > Additional Libraries and Templates > Rich Text Template Support - Overview >====== ReplaceRTF code template ====== Previous pageReturn to chapter overviewNext page

NoteBox.jpg

This template (and its associated code templates) has been deprecated, and is now replaced by the RTF Text Control template.

The ReplaceRTF code template is used to do a Find and Replace search option within the rich text control. This template calls the Replace method. The string (or variable containing a string) to search for and the string (or variable containing a string) to replace with is passed to this method. If these parameters are omitted the Find and Replace dialog will appear.

Prototype:

Replace( [FindText], [ReplaceText] )

Example method calls:

! Using Variables

loc:position = oRTF_RTFTextBox.Replace( loc:find, loc:replace )

! Replace dialog

loc:position = oRTF_RTFTextBox.Replace()

Template Prompts:

Associated RTF control

Select the RTF control from the drop-down list. All controls on the Window are included in the list. This field in required.

Find string or variable

Specify the text to search for within the rich text field. A string or variable may be used. To use a variable, precede it with an exclamation point (!).

Replace string or variable

Specify the text to replace within the rich text field. A string or variable may be used. To use a variable, precede it with an exclamation point (!).

replacertf_code_template.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1