Arbortext Command Language > Functions by Alphabetical Listing > change_tracking_accept_selection
  
change_tracking_accept_selection
ret = change_tracking_accept_selection(isValid[, doc[, oid]])
 
This function attempts to accept a tracked change in selected content in the document doc.
isValid — A value specifying how the function handles the change.
If isValid is non-zero, change_tracking_accept_selection determines whether there is a selection that can be accepted. The function returns 1 if there is a current selection which is balanced and completely inside of a highlighted add or delete change tracking region. Otherwise, the function returns 0.
If isValid is 0, change_tracking_accept_selection determines if the selection is valid to accept, and then attempts to accept the selection. Accepting the selection may result in splitting the change tracking region into two regions. If the accept succeeds, the function returns 1. Otherwise, the function returns 0.
doc — Optional. The document in which to accept changes. If doc is omitted, the current document is used.
oid — Optional. If isValid is non-zero and oid is supplied, then oid is set to the change tracking markup that is available to be accepted.
Related Topics
change_tracking_reject_selection