>>-anEditControl~ReplaceSelText(--text--)----------------------><
The ReplaceSelText method replaces the selected text in the associated edit control with a new one.
The only argument is:
The text string that is to replace the currently selected text.
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.