ReplaceSelection()

Syntax:

textObject.ReplaceSelection( String )

Parameters:

String - a string to replace the current selection within a Text object. String can be any string surrounded by quote marks or a variable name containing a string.

Remarks:

This function replaces the currently selected text in a Text object with String. If no text is currently selected in the Text object, then String is inserted at the start of the current text. This function is normally used after a SetSelection function has selected a range of characters within a text field.

image\Script_Button.jpgExamples