Arbortext Command Language > Functions by Alphabetical Listing > oid_select
  
oid_select
oid_select (oid[, invert[, primary[, include]]])
This function marks the contents of the element specified by oid. The contents may be obtained by referencing the main::selection variable. This function returns 1 (True) if oid was marked or 0 (False) if the element has no content. If invert is 0, then the marked region is not highlighted. The default is 1, that is, the region is inverted.
If primary is 0, then the primary selection is not claimed. The default is 1, that is, the selection is asserted.
The optional fourth argument include, if non-zero, causes the start tag (and end tag if not EMPTY) for the element given by oid to be included in the selection. The default is 0, that is, the element tags are not included.
This function returns the content of an element without affecting the screen display:
function oid_content(o)
{
if (oid_empty(o)) { return "";}
oid_select(o, 0, 0)
return main::selection
}
Related Topics
mark command
Packages ( main::selection variable)
oid_content function