GetSelectedText (NotesUIDocument - LotusScript®)

Gets the text that is highlighted in the UI.

Note: This method is new with Release 5.

Defined in

NotesUIDocument

Syntax

text$ = notesUIDocument.GetSelectedText( [ fieldName$ ] )

Parameters

fieldName$

String. Optional. Restricts the return value to the selected text within the specified field.

Return value

text$

  • (With no parameter) the currently selected text, or an empty string if nothing is selected.
  • (With the parameter) the currently selected text within the specified field, or an empty string if nothing is selected within the specified field.

Example