selection

Typekeyword
DictionaryLCS
LibraryLiveCode Script
Syntax
the selection
selection()
Summary

The selection is a reference to the currently selected text.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
put empty into the selection -- deletes the selection
RelatedProperty: selectGroupedControls, selected
Message: openField, selectionChanged
Keyword: intersect
Control Structure: function
Function: selectedLoc, mouseColor, functionNames
Command: cut, copy
Glossary: keyword, command, function, container
Description

Use the selection keyword to get the currently selected text or to replace the selection.

Certain commands--in particular, the cut and copy commands--operate on the selected text.

Note: The selection keyword is implemented internally as a function and appears in the functionNames. However, unlike most functions, the selection lets you put things into it, and behaves like a container rather than a function.

Tagsui