Lingo Dictionary > S > selEnd |  |

selEnd

Syntax

    the selEnd

Description

Global property; specifies the last character of a selection. It is used with `selStart` to identify a selection in the current editable field, counting from the beginning character.

This property can be tested and set. The default value is 0.

Example

These statements select "cde" from the field "abcdefg":

    the selStart = 3
    the selEnd = 5

Example

This statement calls the handler `noSelection` when `selEnd` is the same `as selStart`:

    if the selEnd = the selStart then noSelection

Example

This statement makes a selection 20 characters long:

    the selEnd = the selStart + 20

See also

`editable`, `hilite (command)`, `selection() (function)`, `selStart`, `text`