Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
SelLength, SelStart, SelText Properties Details
◄Summary► ◄Details► ◄Example► ◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
[form.]{combobox. | textbox.}SelLength[ = length%]
[form.]{combobox. | textbox.}SelStart[ = point%]
[form.]{combobox. | textbox.}SelText[ = stringexpression$]
Usage Notes
■ Use the SelLength, SelStart, and SelText properties for:
• Setting the cursor position
• Establishing an insertion range
• Selecting substrings in a control
• Clearing text
■ Setting SelLength to less than 0 causes a run-time error. Attempting to
set SelStart to a value less than zero generates the run-time error
message, "Invalid property value."
■ Setting SelStart greater than the text length sets the property to the
existing text length.
■ Changing SelStart sets SelLength to 0.
■ Setting SelText replaces the currently selected text and places the
cursor just after the inserted text. SelLength is always zero after
this operation.