Arbortext Command Language > Functions by Alphabetical Listing > doc_revert
  
doc_revert
doc_revert ([doc[, flags]])
This function reverts the document specified by the doc parameter to the last saved version, discarding any changes. If doc is 0 or omitted, the current document is used.
The flags parameter is a bitmask that specifies revert options and is constructed using OR with the following flags:
0x001 — Revert the document read only. The in-memory document may not be changed in this case.
0x002 — Suppress the prompt that unsaved changes will be discarded.
0x004 — Revert the XML or SGML document in untagged mode. That is, do not interpret any markup.
0x008 — Revert the document using an XML parser.
Related Topics
doc_open function
doc_close function