Kevin B. Kent wrote in message
news:39AAAFC0.5434C834@usa.alcatel.com...
> Donal Day wrote:
>
> > Friends:
> >
> > I know it is possible to programatically change the caption of a item
> > through use of the attribute node.
> >
> > But I would like to do is programatically set the captions of items
> > (e.g. booleans) in an array. For example I have an array of strings
> > which I would like to use to set the captions of the individual elements
> > in a array of booleans. I would like to avoid have to do each element
> > individually.
Alternatives, depending on what you want to do, are to either have an array
of clusters, in which each element holds a string (for the caption) and a
control or indicator of whichever type you w
ant (if you need it to be a
control, simply use locals to load the string elements, being aware of the
problem if you reload them while the user is typing values into the
controls!), or to make a separate array of strings next to or above the
front panel array.
The second option is better if the arrays are small and of fixed length so
the user doesn't need to scroll indices, the first is better if the array is
large.