01-04-2007 10:42 AM
01-07-2007 09:32 PM
01-14-2007 02:33 AM
Hi, Andrew, thank you for your reply. The method Sequence.Save also doesn't help. I send you my small sequence for demonstrate you what I want to do. Note that I want my main sequence will show current time through first step and I change the name of this step in the SequenceFilePostStep.
01-15-2007 11:20 AM - edited 01-15-2007 11:20 AM
Using the method that we've been discussing up to this point, you can programmatically modify the sequence file. However, since a sequence file is loaded initially at runtime, it would not be updated until the next execution. If you want the name change to be reflected during runtime, you need to change the technique that you are using. The best way to do this is to use Parameters.Step as the object name rather than RunState.SequenceFile.Data.Seq["MainSequence"].Main[0]. Since this operation would be applied to the entire sequence file (since it is in the SequenceFilePostStep callback), you need to use an if statement. It would be best to give the first step of your MainSequence a very unique name so that the if condition is a simple check. You would get the name of Parameters.Step, check if it is equal to a predetermined value, and then use the same call to set the name you are currently using (just with Parameters.Step instead). I have attached your modified sequence file based on this discussion.
Hope this helps!
Message Edited by AndrewMc on 01-15-2007 11:22 AM
01-16-2007 10:25 AM
01-16-2007 11:50 AM
01-17-2007 02:09 AM
Hi, Doug,
thank you for your help !
It is that I need,
I did RunState.Caller.RunState.Sequence.Main[0] and added RefreshWindows callback -
and now it works