Error getting tags :
error 404Error getting tags :
error 404 selectedText | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
selectedText
Basics
Expander triangle
Type
Function
Syntax
the selectedText [of field | button] selectedText([field | button])
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Returns the contents of the text selection.
Examples

the selectedText of field "Chapter Titles"
put the selectedText into thisSelection

Additional Comments
Expander triangle

Use the selectedText function to find out what text is selected.

Parameters:

The field is any valid field reference.

The button is any valid button reference.

Value:

The selectedText function returns a string.

Comments:

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.

User Comments
Expander triangle