From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Controls[] Property to clusters in a cluster

Solved!
Go to solution

I have a main cluster that contains 2 sub clusters of controls. I would like to use a Reference to the main cluster to get to the properties of the 2 sub clusters of controls.

 

Using a reference to the main cluster I can get the Controls[] reference array to the two sub clusters. However I would need another Controls[] property to get to the elements in the sub clusters and I don't see an option to do this.

 

One picture is worth a thousand words so I've attached a picture of what I'm trying to describe

 

Thankyou

 

 

Jim Haas
0 Kudos
Message 1 of 2
(2,352 Views)
Solution
Accepted by topic author JHaas

You need to use the reference to the clusters of the inner clusters to get to the properties of those elements.  Using the To More Specific Class and checking the error out will prevent an attempt to act on controls in the outer cluster which are not clusters.

 

Lynn

 

Nested Controls[] Properties.png

Message 2 of 2
(2,337 Views)