Arbortext Command Language > Functions by Alphabetical Listing > current_doc
  
current_doc
current_doc ([doc])
This function returns the document identifier of the current document tree. If doc is given, this function sets the current document to the specified identifier and returns the previous value. Subsequent commands in the current execution context (either function or alias) will operate on this document tree. The doc argument must be a return value from a previous call to doc_open, window_doc, or oid_doc.
Related Topics
doc_open built-in function
oid_doc function
window_doc built-in function
current_window window function