method Grid.UndoRemoveAction ([Action as Variant], [Count as Variant])
Removes the last the undo actions that can be performed in the control.

TypeDescription
Action as Variant [optional] A long expression that specifies the action being removed. If missing or -1, all actions are removed from the undo queue.

The Action parameter can be one of the following:

  • exListUndoRedoAddItem(13) ~ "AddItem;ITEMINDEX", indicates that a new item has been created
  • exListUndoRedoRemoveItem(14) ~ "RemoveItem;ITEMINDEX", indicates that an item has been removed
  • exListUndoRedoChangeItemPos(15) ~ "ChangeItemPos;ITEMINDEX", indicates that an item changes its position or / and parent
  • exListUndoRedoChangeCellValue(16) ~ "ChangeCellValue;ITEMINDEX;CELLINDEX", indicates that the cell's value has been changed
  • exListUndoRedoChangeCellState(17) ~ "ChangeCellState;ITEMINDEX;CELLINDEX", indicates that the cell's state has been changed

For instance, UndoRemoveAction(13) removes only AddItem actions in the undo stack.

Count as Variant [optional] A long expression that indicates the number of actions to be removed. If missing or -1, all actions are removed. For instance, UndoRemoveAction(13,1) removes only the last AddItem action from the undo stack
Use the UndoRemoveAction method to remove the last action from the undo queue. Use the UndoRemoveAction() ( with no parameters ) to remove all undo actions. The UndoListAction property retrieves the list of actions that an undo operation can perform. The RedoRemoveAction method removes the first action to be performed if the Redo method is invoked.

The records of the Undo/Redo queue may contain actions in the following format:

Also, the Undo/Redo queue may include: