Arbortext Command Language > Functions by Alphabetical Listing > oid_current_tag
  
oid_current_tag
oid_current_tag ([doc[, forward]])
In the Edit window view, this function returns the identifier of the tag object that is backward from the cursor in the document if forward is 0 or omitted. If forward is non-zero, oid_current_tag returns the identifier of the tag object that is forward from the cursor.
* 
If forward is 0 or omitted, the object returned corresponds to the tag that would be affected by the modify_tag command.
In the Document Map view, this function returns a tag object identifier based on the cursor location and the value of the set docmapcurrenttag command.
The doc argument specifies the identifier of the document tree to query. If omitted or 0, the current document is searched.
Unlike oid_caret this only returns tag objects, never equation images. Also unlike oid_caret, if the encountered tag is an end tag, oid_current_tag returns the OID of its start tag instead of the parent object.
Related Topics
current_tag_name built-in function
oid_caret function
set docmapcurrenttag command