Description

Saves the current recording state for future undo.

Return Type

None  

Syntax

object.SetUndoMarking

The SetUndoMarking Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McRecorder.

Remarks

Each call to SetUndoMarking sets a mark on the next line to be recorded with a maximum of 9. Calling Undo at a later time deletes all the recorded output from the end of the recording backward to, and including, the line that was marked. This technique is used for recording actions that might later be canceled by the user, for example filling out and closing a nested dialog box, and later clicking Cancel on the parent dialog box.

The SetUndoMarking method will only track the last nine markings.