02-28-2013 08:24 AM
I am having difficutly in creating a simple program that creates an array of clusters of boolean controls where each boolean has its own custom text. I attempt to auto create the boolean text in a loop and then after writing to change each individual control, I bundle it and collect it into an array. What am I doing wrong here?
Solved! Go to Solution.
02-28-2013 08:36 AM
The elements of an array can have different values but the must all have the same attributes. The boolean text is an attribute, so it must be the same for all elements of an array.
Lynn
02-28-2013 08:40 AM
Where's your cluster?
All elements of an array must have the same properties. This includes the boolean text.
02-28-2013 08:43 AM
Sorry, I left it out as I trimmed things back to post this question. Here it is.
02-28-2013 08:52 AM
The property node is not pointing to the array of booleans you are creating but rather the single boolean from which the array is created from.
Right now the property node is: Setting the text of the single boolean and returning its current value as a new boolean (for which the text has not been set).
02-28-2013 08:52 AM
Here is a way using a cluster of String, Color Box, and Boolean to give you something which may be like what you want. Note that the boolean is colored transparent so that it does not obscure the color box and string indicators. If you are going to do something like this, make the cluster a typedef.
Lynn