hiClearCurrentTextSelection
hiClearCurrentTextSelection(w_windowId) =>t/ nil
Description
Clears current selection, if any, in the specified text window. This is equivalent to clicking anywhere in the text window when text is selected.
Argument
Values Returned
Examples
The hiSetCurrentTextSelectionLoc function selects text with indexes 10:20, which is equivalent to selecting the text in that range using the mouse. The hiClearCurrentTextSelection function clears the selection.
win=(view "memoirs.txt")
(hiSetCurrentTextSelectionLoc win 10 20)
selection=(hiGetClipboard)
> "confidentia"
(hiClearCurrentTextSelection win)
Related Topics
hiSetCurrentTextSelectionLoc
Return to top