Type | Description | |||
Action as Variant |
[optional] A long expression that specifies the action being listed. If missing
or -1, all actions are listed.
The Action parameter can be one of the following:
For instance, RedoListAction(13) shows only AddItem actions in the redo stack. | |||
Count as Variant | [optional] A long expression that indicates the number of actions being listed. If missing or -1, all actions are listed. For instance, RedoListAction(13,1) shows only the first AddItem action being added to the redo stack. | |||
String | A String expression that lists the Redo actions that may be performed. |
The records of the Undo/Redo queue may contain actions in the following format:
Also, the Undo/Redo queue may include:
Each action is on a single line, and each field is separated by ; character. The lines are separated by "\r\n" characters ( vbCrLf in VB ).
Here's a sample format of the RedoListAction property may get:
AddItem;0 AddItem;1 AddItem;2 ChangeCellState;2;0 AddItem;3 ChangeCellState;3;0 StartBlock RemoveItem;0 RemoveItem;1 RemoveItem;1 RemoveItem;1 EndBlock
The following VB sample splits the RedoListAction value and adds each action to a listbox control:
List1.Clear Dim s() As String s = Split(Grid1.RedoListAction, vbCrLf) For i = LBound(s) To UBound(s) List1.AddItem s(i) Next