09-06-2010 03:16 PM
Hi,
I'm trying to pass collection object (ArrayList) from C# application to TS. I have assigned output value in TS to Container, but while the sequence end executing, then occured an error: "Specified value does not have the expected type".
What should I do to get full access to my ArrayList? To what kind of variables type I should assigned ArrayList?
Thanks for help anyway.
piotr
Solved! Go to Solution.
09-06-2010 03:51 PM
Hi,
If your collection is derived from System.Collections.Generic you are not able to use because generics are not supported with TS 4.2 or earlier.
You need a wrapper class.
If possible you can signup for TS 4.5beta.
See also this thread:
http://forums.ni.com/t5/NI-TestStand/How-to-iterate-though-a-net-dictionary/td-p/1232557
Hope this helps
juergen
09-06-2010 04:11 PM
But ArrayList is from System.Collection Library. Is it possible to use it in TS? I also have to work with TS 4.2.
Thanks for reply
09-07-2010 01:29 AM
09-07-2010 04:31 PM
Thanks very much. This is the exactly answer what I was looking for.
Your example helps me a lot.
Thanks very much again!!
piotr