06-25-2013 04:21 PM
I have a cluster of String controls for which I am trying to retrieve the labels for each of the individual strings. My goal, as part of a larger project, is to pass differently labeled strings but same cluster size into this subVI and then write the string labels & text to a file. However, the indexes of the references in the AllObjects[] property doesn't match up with the ordering I gave the cluster objects....why? If not from the ordering of the cluster objects, how is the AllObjects[] order being determined?
Is there maybe some property I'm overlooking that can match the elements of allObjects back to their index within the cluster?
Or any other suggestion to obtain the labels of controls within the cluster while maintaining the same ordering as the cluster?
Solved! Go to Solution.
06-25-2013 04:25 PM
You need to use the Controls[] property of the Cluster class to get the controls in their cluster order. I'm not sure what order the AllObjs[] property returns...maybe the order in which they were initially dropped? The reason there are two properties is because AllObjs[] would also include any decorations inside the cluster.
06-25-2013 04:31 PM
Yes Darren, AllObjs[] lists in Z order