property Chart.RedoListAction ([Action as Variant], [Count as Variant]) as String
Lists the Redo actions that can be performed in the chart.

 TypeDescription 
   Action as Variant [optional] A long expression that specifies the action being listed. If missing or -1, all actions are listed. For instance, RedoListAction(2) shows only AddBar 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(2,1) shows only the first AddBar action being added to the redo stack.  
   String A String expression that lists the Redo actions that may be performed.  
The RedoListAction property lists the Redo actions that can be performed in the chart. The ChartStartChanging(exUndo/exRedo) / ChartEndChanging(exUndo/exRedo) event notifies your application whenever an Undo/Redo operation is performed. The UndoListAction property lists the actions that the user may perform by doing Undo operations. The CanRedo property specifies whether a redo operation can be performed if CTRL+Y key is pressed. Use the RedoRemoveAction method to remove the first action from the redo queue.

The Undo/Redo manager of the chart records operations in the following format:

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 ). 

For instance, 

Here's a sample format of the RedoListAction property may get:

AddBar;118970952;;Summary;6/21/2005;6/28/2005
AddBar;118977632;;Task;6/21/2005;6/28/2005
DefineSummaryBars;118970952;;118977632;
AddBar;118982672;E;Task;6/28/2005;7/6/2005
DefineSummaryBars;118970952;;118982672;E
AddLink;L1;118977632;;118982672;E
GroupBars;118977632;;0;118982672;E;-1;39
GroupBars;118977632;;0;118982672;E;-1;7
AddBar;118991088;E;Task;7/6/2005;7/8/2005
AddLink;L2;118982672;E;118991088;E
GroupBars;118982672;E;0;118991088;E;-1;39
GroupBars;118982672;E;0;118991088;E;-1;7
DefineSummaryBars;118970952;;118991088;E
AddBar;118995016;;Summary;6/26/2005;7/2/2005
AddBar;118997728;;Task;6/26/2005;7/2/2005
DefineSummaryBars;118995016;;118997728;
AddBar;119033392;E;Task;6/28/2005;7/6/2005
DefineSummaryBars;118995016;;119033392;E
AddBar;119036136;E;Task;6/30/2005;7/2/2005
DefineSummaryBars;118995016;;119036136;E
MoveBar;118970952;;6/21/2005;7/1/2005;6/21/2005;7/8/2005
StartBlock
MoveBar;119036136;E;6/30/2005;7/2/2005;6/27/2005;6/29/2005
MoveBar;119033392;E;6/28/2005;7/6/2005;6/25/2005;7/3/2005
MoveBar;118997728;;6/26/2005;7/2/2005;6/23/2005;6/29/2005
MoveBar;118995016;;6/26/2005;7/6/2005;6/23/2005;7/3/2005
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(G2antt1.Chart.RedoListAction, vbCrLf)
For i = LBound(s) To UBound(s)
            List1.AddItem s(i)
Next
 


Send comments on this topic.
1999-2017 Exontrol.COM, Software. All rights reserved.