Arbortext Command Language > Functions by Alphabetical Listing > cut_valid
  
cut_valid
cut_valid ([doc[, ignoreROFileEnt]])
This function returns 1 (True) if the selected region can be cut without causing context errors. It returns 0 if the region is not balanced, is a protected region, or if context errors would result if the region was deleted. The doc argument specifies the identifier of the document owning the selection. If omitted or 0, the current document is used.
If the ignoreROFileEnt argument is supplied and is not 0, any unlocked file entities or XML inclusions that contain the selection will be ignored with respect to determining if the selection is protected.
Note, this function does not consider fix ups (such as adding required tags) when determining whether the cut will succeed.
Related Topics
delete_markup_valid
oid_expose
oid_paste_valid
oid_show_attr