ReplaceSelText

>>-anEditControl~ReplaceSelText(--text--)----------------------><


The ReplaceSelText method replaces the selected text in the associated edit control with a new one.

Arguments:

The only argument is:

text

The text string that is to replace the currently selected text.

Example:

edit = MyDialog~GetEditControl("TEXT")
if edit == .Nil then return
edit~Title = "Object Rexx is a hybrid language."
edit~Select(17,25)
    edit~ReplaceSelText("n interpreted")
    say edit~Title

Result: Object Rexx is an interpreted language.