IWxWorkspace.Undo

Fore Syntax

Undo([Steps: Integer = 1]);

Fore.NET Syntax

Undo(Steps: Integer);

Parameters

Steps. Number of canceled steps. The default value for the parameter is 1.

Description

The Undo method cancels a defined number of completed actions. If the parameter has not been defined, the method will cancel the last completed action.

Fore Example

Executing the example requires an existing ws object of the IWxWorkspace type.

Sub UserProc;
Var
   ws: IWxWorkspace;
Begin
   ws.Undo(ws.UndoNumSteps);
End Sub UserProc;

Executing this example will cancel all available actions.

Fore.NET Example

Executing the example requires an existing ws object of the IWxWorkspace type.

Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.Andy;

Public Sub UserProc(Params: StartParams);
Var
   ws: IWxWorkspace;
Begin
   ws.Undo(ws.UndoNumSteps);
End Sub UserProc;

Executing the example will cancel all available actions.

See also:

IWxWorkspace | IWxWorkspace.UndoEnabled