REPLACE-SELECTION-TEXT( ) method
Replaces the currently selected text in an editor widget with the new text.
Return type: LOGICAL
Syntax
REPLACE-SELECTION-TEXT ( new-text )
|
new-text
A character-string expression that specifies the new text to replace the currently selected text.
To determine what text is currently selected, query the SELECTION-TEXT attribute. If the replace operation is successful, the method returns TRUE.