| **Navigation:**  [[templates.htm|Templates]] > Guide to all Templates > [[additional libraries and templates.htm|Additional Libraries and Templates]] > Rich Text Template Support - Overview >====== FindRTF code template ====== | [[cutrtf code template.htm|{{btn_prev_n.gif|Previous page}}]][[additional libraries and templates.htm|{{btn_home_n.gif|Return to chapter overview}}]][[flatbuttonsrtf code template.htm|{{btn_next_n.gif|Next page}}]] | | || {{notebox.jpg|NoteBox.jpg}} **This template (and its associated code templates) has been deprecated, and is now replaced by the [[tplcontrolrtf.htm|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.