09-03-2008 10:22 AM - edited 09-03-2008 10:24 AM
I have created a control cluster with a series of string controls in it.
I would like to use the labels of each of the controls as a header for a file. Is there a property node or a method to extract this information?
I could unbundle by name, create an indicator for each item and get the text label property node for each item, but I was hoping for an automatic method so if I add/remove controls to the cluster, it will automatically extract/ignore the extra/deleted header .
Pablo
09-03-2008 10:27 AM - edited 09-03-2008 10:28 AM
the Controls[ ] property of a cluster gives you an array of it's contained controls' references. you can also use the controls[ ] property of a VI's front panel to do the same thing for a whole VI.
09-03-2008 10:45 AM
Brilliant, Excellent, Genius!
I am off to the pub!