{"identifier":64031,"topic":"Functions","name":"selectedText","text":"<code><pre>the selectedText \nthe selectedText of <i>listField<\/i>\nthe selectedText of <i>popupButton<\/i>\n<\/pre><\/code>\nValue returned: a string equal to the range of characters currently selected.  If nothing is highlighted, it returns<code> empty<\/code>. <br><br>\n\n 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, <code>the selectedText<\/code> returns the most recent selection. <br>\n","related":{"24266":null,"32809":null,"12857":"autoSelect","53775":"clickText","56722":"foundText","47006":"select"},"examples":"","demo":"on whatIsTheSelection\n   select line 2 of me\n   answer \"The selectText is \u201c\" & the selectedText & \"\u201d\"\n end whatIsTheSelection\n ","debug":{"9":["the selectedText \rth"]}}