Navigation: Templates > Guide to all Templates > Additional Libraries and Templates > Rich Text Template Support - Overview >====== FindRTF code template ====== | |
This template (and its associated code templates) has been deprecated, and is now replaced by the RTF Text Control template.
The FindRTF code template is used to search for text within the rich text field. This template calls the Find method. The string (or variable containing a string) to search for is passed to this method. If this parameter is omitted, the Find dialog will appear. The position where the text is found is returned.
Prototype:
Find(find text )
Example method calls:
loc:position = oRTF_RTFTextBox.Find( loc:find )
loc:position = oRTF_RTFTextBox.Find( 'mytext' )
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 (!).
Variable to receive starting position
The Find method returns the starting position of the text to be searched for. Specify a variable to hold the starting position.