IMap.UndoRedo

Syntax

UndoRedo: IUndoRedo;

Description

The UndoRedo property returns parameters of undo/redo stack of a map.

Example

Executing the example requires that the repository contains an express report with the EXPRESS_REPORT identifier. Add links to the Express, Map, Metabase system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    Express: IEaxAnalyzer;
    TUnRed: IUndoRedo;
Begin
    MB := MetabaseClass.Active;
    Express := MB.ItemById("EXPRESS_REPORT").Edit As IEaxAnalyzer;
    TUnRed := Express.Map.Map.UndoRedo;
    TUnRed.Enabled := True;
    TUnRed.Limit := 30;
    (Express As IMetabaseObject).Save;
End Sub UserProc;

After executing the example the undo/redo stack is available for express report map, the stack has a limit of 30 days for undo/redo operations.

See also:

IMap