05-17-2010 01:57 PM - edited 05-17-2010 01:57 PM
In TestStand, there is 2 way of indexing some special types of arrays. (Seems to be arrays of containers)
For example, in a Sequence containing a single step called Statement, you may address this step in two ways:
RunState.Sequence.Main[0]
and
RunState.Sequence.Main["Statement"]
(in fact, I may also use the step id, but let's keep in simpler with those 2 methods)
Is there a way to create such type of array myself, in order for me to use string indexing? (or is it only possible on some NI Types)
Solved! Go to Solution.
05-17-2010 02:41 PM
As you surmised, that works for any array of containers.
You just need to assign names to the elements. You can do this in the sequence editor by selecting an element and hitting F2, or by programmatically setting PropertyObject.Name.
05-18-2010 01:19 AM
05-18-2010 06:09 AM