Hi all,
 
Eric Scott <[EMAIL PROTECTED]> asked on Thu, 8 Jan 2004 16:00:29 -0800:
> I want to programatically change the "cluster size" value in the Array-to-Cluster 
> function (when you right click
> and select Cluster Size..). I have a cluster that I convert to an array, do some 
> number manipulation, and change
> back to a cluster. The problem is I can't seem to find a way to automatically make 
> the number of elements in the
> cluster the same number as the array it was just converted from.
There have been answers on this.

> I want to be able to add a control (numeric) to a FP cluster and not have any wires 
> break due to conflicting
> cluster sizes, nor have to go through the sub-vis and change each Array-to-Cluster 
> function. 
What about TypeDefs? Works just during editing as does the adding of a
numeric control to a FP cluster.

> BTW: I can't just start with a FP array because I need the ability to know 
> programatically which element the user
> clicked on. This is easy to do with clusters.
This can easily be done with a list. 
The only disadvantage of lists is they contain just one type of data,
whereas a cluster can contain a collection of any types you like. 
Feed an array of string representations of your 'control values' into the
item names property of a list and poll the Value property of a list. It
returns the selected line index, which could be used to obtail the
represented value from the fed string array. This scales juat fine.
I have just a LV6.02 German at hand, so the names of the properties are
intuitively translated and may be slightly different. There are even better
solutions to expect using events, but I'm not too familiar with this.

HTH   and
Greetings from Germany!
-- 
Uwe Frenz


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dr. Uwe Frenz
Entwicklung
getemed Medizin- und Informationtechnik AG
Oderstr. 59
D-14513 Teltow

Tel.  +49 3328 39 42 0
Fax   +49 3328 39 42 99
[EMAIL PROTECTED]
WWW.Getemed.de


Reply via email to