That looks good. But two things are not that what i want. That you have mad an String to enter my Text would be very nice. But the string i have enter should shown ubove if the same error in the same step occurs again. This should no problem to change because i only enter in the message config + Locals.Error. But that second problem is that the Locals.Error is only created in runtime.
I want to create this Local by TestStand for example in the Displaytest3.seq in UserZufallszahl permanetly and not only for runtime. But i don't found something to realize this.
You can access this property by using RunState.Caller.RunState.SequenceFile.Data.Seq[""].Locals. You can perform the NameOf(RunState.Caller.RunState.Sequence) to get the Name of the Caller sequence.
You would have to increment the RunState.SequenceFile.ChangeCount and save the sequence file. Otherwise when you close the SequenceFile, you would lose this change.
Very nice thank you very much for your help. Now it works how i mean.
A litle problem i still have. Do you remember on my ErrorHandler.seq with the Message Popup that opens in Error case. In this Message Popup i will Enter this string: + PropertyExsits("RunState.Caller.RunState.Caller.Locals.ErrorText") ? RunState.Caller.RunState.Caller.Locals.ErrorText : "" But this string doesn't work i get an error
Datails: Error Evaluating Message Expression: Specified value does not have the expected type.
ErrorCode: -17308; Specified value does not have the expected type.
Location: Step 'Message Popup' of sequence 'MainSequence' in 'ErrorHandler.seq'
Last but not least one question. Now we create the variable in the Locals Tab of a sequence. Is it possible to create a variable in the actually step of a sequence?
You what to create, at runtime, a SequenceCall step type with an additional step property, of type String and insert it into a sequence. This of course would make it a Custom Step Type based on NI SequenceCall Step Type.