UndoAction(Index: Integer): String;
Index. Index of the operation, which can be canceled.
The UndoAction property returns the name of the element in the undo by the index stack.
Sub Macro;
Var
Rep: IPrxReport;
Tab: ITabSheet;
View: ITabView;
Begin
Rep:=PrxReport.ActiveReport;
Tab:=Rep.ActiveSheet.Table;
View:=Tab.View;
Tab.Cell(0,0).Value:=View.UndoCount;
Tab.Cell(0,1).Value:=View.UndoAction(View.UndoCount-1);
End Sub Macro;
This example is a macro for a regular report. After the macro has been executed, the «A0» cell will contain the number of elements in the undo stack, and the cell «B0» will contain the number of the last element in the stack.
See also: