08-09-2005 01:41 AM
08-09-2005 03:46 AM
08-09-2005 03:46 AM
08-09-2005 03:46 AM
08-09-2005 03:47 AM
hi there,
you can open a reference to the vi and get the "Front panel" object. this object has a property "controls[]" which gives you a list of references to all controls of the vi. then you have to get the corrcect reference, cast it to "cluster", call the "controls[]" property of that cluster reference and select the correct reference of the control in the cluster....
this will work, but you should do this only once in your code and store the reference of the control in a FGV. be sure to close all references in the controls[] lists, even those not needed, otherwise memory leaks may occur. you can search the correct reference in the lists by its label, otherwise you'll get confused when you change the order of the controls on the Front panel or inside the cluster.
best regards
chris