11-28-2007 05:50 AM
11-28-2007 06:30 AM
Hi,
If you are in the Step then all you need is Locals.NameOfLocal.
If you are trying to build up a String then "Locals." + "NameOfLocal".
This will work if you modify it to Locals.LookupString = "RunState.ThisContext.Thread.GetSequenceContext(1).Locals"+ "NameOfLocal"
Regards
Ray
11-28-2007 06:39 AM
Hi Ray
I'm not in the step.
I have a GUI that was opened in a different thread. From this GUI I want to read some locals from selected testsockets.
regards
Richard
11-28-2007 09:17 AM
Hi,
You need to used the Execution reference for the TestSocket.
Get a reference to the Thread and use Thread.GetSequenceContext() to get a reference to the SequenceContext.
Get a PropertyObject from the SequenceContext using SequenceContext.AsPropertyObject() then you can use the GetVal or SetVal methods.
Hope this helps
Regards
Ray