hiSetCurrentTextSelectionLoc
hiSetCurrentTextSelectionLoc(
w_windowId
x_startIndex
x_endIndex
)
=> t | nil
Description
Selects the range of text specified by the start and end indexes in the given text window. This is equivalent to selecting the text with the mouse.
Arguments
|
The index of the first character to be selected, starting from |
|
Values Returned
Examples
The hiSetCurrentTextSelectionLoc function selects the first 7 characters. The hiGetClipboard function returns the selected text, Private, which is stored in the clipboard.
win=(view "memoirs.txt")
(hiSetCurrentTextSelectionLoc win 0:6)
(hiGetClipboard)
> "Private"
Related Topics
Return to top