Arbortext Command Language > Functions by Alphabetical Listing > doc_set
  
doc_set
$ret=doc_set (doc, option, value)
For the document with a doc id of doc, this function sets the local document scope for the specified option to value. If you attempt to set an option with no local scope, or a local scope of window, an error occurs. If you set an option with a view scope, all views for the specified document will be updated to reflect the change in option value.
If the function executes successfully, it returns a one (1). If the specified option is invalid, or does not have a local scope of document or view, or the value is invalid for the option, the function returns a zero (0).
Examples
$ret = doc_set($doc,"showiconsfulltags","on")
$ret = doc_set($doc,"tagdisplay","full")
Related Topics
Set option scope
doc_get function
current_doc function
option_scope function
set command