12-30-2014 11:39 AM
Is it possible to set the post expression of a step, which is not the Next or Previous step?
I know this is possible
RunState.NextStep.PostExpression = "Enter Post Expression Here"
I am looking for something like
RunState.Step("StepID").PostExpression = "Enter Post Expression Here"
Does anyone know if there's a way to accomplish something to that effect?
Thanks!
Solved! Go to Solution.
12-30-2014 02:06 PM
RunState.Sequence.GetStepByUniqueId("ID").PostExpression = "Blah"
Hope this helps,
12-30-2014 02:11 PM
Thank You!
I didn't realize I should be looking in RunState.Sequence
I think I'm going to use GetStepByName now that I know that exists, and I can paramterize that to be an intuitive control.
01-02-2015 10:44 AM
If you plan on executing the sequence in multiple threads at once, it's best not to make a self-modifying sequence like this since many of the step setting properties like PostExpression are shared between all threads.
-Doug
01-05-2015 07:53 AM - edited 01-05-2015 07:54 AM
Doug,
Thanks for the heads up.
The step will only change once, at the start of the routine, if at all. I am only interested in setting up the elements of an array which I write to my datalog, which does not change very often, and will not change once the routine is running.