04-17-2020 05:23 AM
Hi, you are welcome 🙂
So... you were right about the Locals.GetPropertyObject!
Seems that it's the only way to edit an Object Reference's self attributes, as other methods already get and manipulate the remote object that the reference points to.
Maybe it's because when using the Locals direct methods, you bring the scope to a higher level and thus can address the Reference Object from "outside" without evaluating it's pointer. But that's only my assumption.
Just a small change - to edit the value you need to use the SetPropertyObject method, like this:
Locals.SetPropertyObject("objData.Attributes.MyCompany.StringData",0,"123")
The file is Attached.
04-17-2020 05:52 AM
Hi
With "Locals.GetPropertyObject("objData",0).Attributes.MyCompany.StringData" it is possible to read and write TestStand object attributes (at least in TestStand 2014 in which I am working.
Example: Locals.GetPropertyObject("objData",0).Attributes.MyCompany.StringData = "1234567890"
04-17-2020 06:38 AM
Yes tried that too, but it didn't work.
Did you try the Set method with the file i sent? It worked for me..
04-17-2020 07:03 AM
Yes, I tried. Your method worked too.
04-19-2020 02:16 AM
Very well.
Feel free to update if you figure out the correct syntax of the other option you mentioned above.