HyperTalk Reference
Home » HyperTalk Reference » Functions

Note: This is a work in progress and will be formatting errors. Read more about the project on the home page.


the selectedText 
the selectedText of listField
the selectedText of popupButton
Value returned: a string equal to the range of characters currently selected. If nothing is highlighted, it returns empty.

If a field isn't currently a list field but it was in the past, and a selection had been made when it was a list field, the selectedText returns the most recent selection.

Demo Script

on whatIsTheSelection
   select line 2 of me
   answer "The selectText is “" & the selectedText & "”"
 end whatIsTheSelection


Related Topics

« selectedLoc | HyperTalk Reference | shiftKey »

Version 0.7b1 (March 24, 2022)

Made with Macintosh

Switch to Modern View