IDLgrTextEdit::Insert
Syntax | Arguments | Keywords | Examples | Version History
The IDLgrTextEdit::Insert procedure method inserts text at the current cursor position. If text is selected, it overwrites the selected text and sets the selection length to zero. (See the SELECTION_LENGTH property of the IDLgrText object for more information.)
Syntax
Obj->[IDLgrTextEdit::]Insert, Text
Arguments
Text
A string containing the text to be inserted.
Keywords
None
Examples
Example 1
To add another string at this position, use:
oText->Insert, 'longer '
oWindow->Draw, oView
Which results in the following sting:
Destroy the IDLgrWindow and IDLgrView objects before we proceed:
OBJ_DESTROY, [oWindow, oView, oFont]
Example 2
The next example shows selected text in a string that will be replaced using INSERT:

To replace the selected string with the word "brown," use:
oText->Insert, 'brown'
oWindow->Draw, oView
Which results in the following string:

Destroy the IDLgrWindow and IDLgrView objects.
OBJ_DESTROY, [oWindow, oView, oFont]
Version History