SelectTextRTF code template

Top  Previous  Next

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

The SelectTextRTF code template is used to select a specific set of characters by character position. The text is highlighted when it is selected. This template calls the SelectText method. The SelectText method takes two parameters, the starting and ending positions or variables.

Prototype:

SelectText( StartPos, EndPos )

Example method calls:

!Select text from position 1 to 20

oRTF_RTFTextBox.SelectText( 1, 20 )

 

!Select text from variable positions

oRTF_RTFTextBox.SelectText( loc:startpos, loc:endpos )

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.

Starting Position or variable (prefixed with !)

Specify a constant or var iable starting position to select text. To use a variable, precede it with an exclamation point (!).

Ending Position or variable (prefixed with !)

Specify a constant or var iable ending position to end text selection. To use a variable, precede it with an exclamation point (!).