GetSelText Function (TextField)

Class

TextField.

Action

Returns the selected text in the text field.

Syntax

sText = textfield.GetSelText()
Variable Description
sText The selected text. STRING.

Notes

If nothing is selected, GetSelText returns an empty string (""). For multi-line text fields, GetSelText returns only on the first line of the selection.

Example

	[ ] sMatch = DocumentWindow.Document.GetSelText()
	[-] if(sMatch != "")
		[ ] Print("Found this false match: " + sMatch)