AddMarker ()

Add a marker to the database for undo/redo.

Usage

AddMarker( tag, state = None )

Parameters

tag (integer)
The tag that is added to the database.
state (tuple)
The information which is needed for refreshing the Undo action.

Return Value

None

Errors

The tag should be valid and exist.

Description

This routine adds (puts) a marker to the database which is specified by tag. This tag is used for undo/redo mechanism. The information which is needed for refreshing Undo is given by state. For example,
changeInfo = ( item.name, )
AddMarker( tag = UndoTags.UNDO_TAG_NEW_GLOBAL, state = changeInfo )