> I´ve got a Vi with about 100 booleans (I can´t use an array because I
> have to dispose them in concentric cercles) ; I would like to be able
> to change paremeters (Values, colors, ...) of a boolean just knowing
> its name, but without using local variables (for example, if user
> click on bollean 45, I want to change the color of bolleans 45, 46 and
> 47). Because It would be too complicated and too big using local
> variables.
If you are using a recent version of LV, that has control references,
I'd do it this way.
The panel has a property called Controls[]. This gives you access to
every control on the panel. With this array of references, loop through
casting them to Boolean type, reading the name or caption, whichever you
want to compare to
, and compare to the name you are looking for. When
found, you have your reference, wire it to the property node that sets
the colors, etc.
Ideally, make all of this go in a subVI and just pass in the VI
reference, the control name, and the control colors/settings to apply.
Greg McKaskle