Arbortext Command Language > Functions by Alphabetical Listing > selection_start
  
selection_start
selection_start (pos[, doc])
 
This function returns the start of the selection in the window containing the document specified by doc, or the current document if omitted. Also returns the character offset of the start of the selection from OID in the output variable pos.
Examples
The functions selection_start and selection_end can be used to restore a selection, for example:
local o1, p1, o2, p2
o1 = selection_start(p1)
o2 = selection_end(p2)
...
goto_oid(o1, p1)
mark begin
goto_oid(o2, p2)
mark end
Related Topics
selection_end built-in function