selectedText | ||||||||||
Type | function | |||||||||
Dictionary | LCS | |||||||||
Library | LiveCode Script | |||||||||
Syntax |
| |||||||||
Synonyms | hilitedtext | |||||||||
Summary | ||||||||||
Introduced | 1.0 | |||||||||
OS | mac, windows, linux, ios, android | |||||||||
Platforms | desktop, server, mobile | |||||||||
Parameters |
| |||||||||
Example |
| |||||||||
Values |
| |||||||||
Related | Keyword: selection, field, lines, string, menu Property: hilitedLine, listBehavior, menuHistory, selected Control Structure: function Object: field Function: selectedLoc, clickText Glossary: property, keyword, return, menu item | |||||||||
Description | Use the selectedText function to find out what text is selected. If a field is specified, the selectedText function returns the selected text in that field. If the field's listBehavior property is set to true, the selectedText includes any selected lines in the field. If a button is specified, the selectedText function returns the currently selected menu item associated with the button. If the button does not have a menu associated with it, the selectedText function returns empty. If there is no insertion point or text selection and no field or button is specified, the selectedText function returns empty. To get the location of the selected text, use the selectedChunk function. To change the contents of the selection, use the selection keyword. | |||||||||
Tags | ui |