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

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

The Action parameter can be one of the following:

  • exUndoRedoAddEvent(13) ~ "AddEvent;EVENTID", indicates that a new calendar-event has been created
  • exUndoRedoRemoveEvent(14) ~ "RemoveEvent;EVENTID", indicates that an calendar-event has been removed
  • exUndoRedoMoveEvent(15) ~ "MoveEvent;EVENTID", indicates that an calendar-event has been moved or resized
  • exUndoRedoUpdateEvent(16) ~ "UpdateEvent;EVENTID", indicates that one or more properties of the calendar-event has been updated, using the StartUpdateEvent / EndUpdateEvent methods

For instance, UndoRemoveAction(12) removes only AddEvent actions from the undo stack.

Count as Variant [optional] A long expression that indicates the number of actions to remove. If missing or -1, all actions are removed. For instance, UndoRemoveAction(12,1) removes only the last AddEvent 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 RedoRemoveAction method removes the first action to be performed if the Redo method is invoked.  The AllowUndoRedo property enables or disables the Undo/Redo feature. The UndoListAction property lists the Undo actions that can be performed in the control. The RedoListAction property lists the Redo actions that can be performed in the control. The LayoutStartChanging(exUndo/exRedo) / LayoutEndChanging(exUndo/exRedo) event notifies your application whenever an Undo/Redo operation is performed.

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

Also, the Undo/Redo queue may include: