
This method replaces the currently selected text in a TextBox with the specified text.
Returns the following according to the situation:
The recommended convention is passing the control identifier directly:
Copy Code |
|---|
(Odcl_TextBox_ReplaceSel MyControlReference [as Reference] NewText [as String]) |
An alternative convention is to identify the control by providing the project file, the dialog name and the control name:
Copy Code |
|---|
(Odcl_TextBox_ReplaceSel ProjectFile [as String] DialogName [as String] ControlName [as String] NewText [as String]) |
Copy Code |
|---|
; Replace the selected text (Odcl_TextBox_ReplaceSel MyProject_MyForm_MyControl "New inserted text") |