LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I reference the properties of a control in a cluster in an array of clusters?

Solved!
Go to solution

Hmm Ben... not that kind of old...

 

Hmmm ... okay I couldn't do a second edit, so here is a new post.

 

After reading the replies, i'll still give my comments. 

I made a small VI snippet for showing you what you where missing.

You need to type cast the reference you get out of ArrElem, to get a cluster reference type. You can do that with the "To more specific Class". If works when you know what the array element type is.

Once you have the cluster reference, you can get an array of reference to the controls in the cluster.

Then just look for the control you what to change property on, and use that reference.

As the visibillity is a generic property, you don't have to type cast any new reference.

 

Try to see my picture.

Message 11 of 12
(509 Views)

Thanks dkfire, I will try that approach next time.

0 Kudos
Message 12 of 12
(490 Views)