Macro Language Reference > Macros > Application > ttundoclear
  
ttundoclear
Description
Clears all text undo records for the current document.
Syntax
ttundoclear
Additional Information
There are at least two reasons that you might want to remove the record of all of your text changes:
1. If you've been running scripts that make a large number of changes to streams that are recording undo information then each of these changes needs an undo record that will use memory. Removing the records of the changes will conserve memory.
2. Sometimes when a document is opened, the autoexec script makes some initial changes, or configures control streams etc. The end of the autoexec script can contain this macro so that the user will not be able to undo past his/her own changes.