UndoRedo: IUndoRedo;
The UndoRedo property determines parameter of Undo/Redo stack in the table.
Executing the example requires a regular report with the Report identifier.
Sub UserProc;
Var
MB: IMetabase;
MObj: IMetabaseObject;
Report: IPrxReport;
TUnRed: IUndoRedo;
Begin
MB:= MetabaseClass.Active;
MObj:= MB.ItemById("Report").Edit;
Report:= MObj As IPrxReport;
TUnRed:= (Report.ActiveSheet As ITabSheet).UndoRedo;
TUnRed.Enabled:= True;
TUnRed.Limit:= 100;
MObj.Save;
End Sub UserProc;
After executing the example an Undo or Redo stack is available for the table; the number of available undo or redo operations is set to 100 operations.
See also: