LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I set the different boolean text in the button array?

I created the OK boolean button array. How can I change the boolean text of each button to be different at run-time? I changed one, but the others are changed also.
0 Kudos
Message 1 of 5
(4,114 Views)
You can't name diferently the buttons in an array, not in development nor programatically. You can use a cluster if you want diferent names, or else use some kind of transparent string in front of the buttons.
Hope this helps
Message 2 of 5
(4,114 Views)
> I created the OK boolean button array. How can I change the boolean
> text of each button to be different at run-time? I changed one, but
> the others are changed also.

If you want to do this in the editor, first take the button into
the control editor. Select the control and choose Customize...
from the edit menu or choose it from the popup>>Advanced.
In the control editor, popup on the button and you have an
option to allow different strings.

Leave the editor and replace the original control.

Greg McKaskle
Message 3 of 5
(4,114 Views)
Thank you for your help
Unfortunately I'm a beginner of this software. Please you explain me more details.
0 Kudos
Message 4 of 5
(4,114 Views)
> Thank you for your help
> Unfortunately I'm a beginner of this software. Please you
> explain me more details.

Select the control using the positioning tool and choose
Customize... from the Edit menu or choose it by popping up
on/right clicking on the control and selecting Advanced>>
Customize...

This will open the control up in a new window -- the control
editor window. This window allows for lots of additional
control modifications and allows for them to be saved into
typedefs to promote reuse and make things more consistent.
Once in the control editor, popup on the button and select
the menu item near the bottom Multiple Text Strings.

Close the editor window and the first dialog will ask if
you would like to save the change
d file. Choose No, and a
second dialog will ask if you would like to Replace the
Original Control. Choose Yes.

At this point the Button will support multiple text labels.
To edit the True string, make the Boolean True and use the
Labeling tool to edit the string that is visible. To edit
the False string, make the Boolean False and use the labeling
tool to edit that string too.

Greg McKaskle
0 Kudos
Message 5 of 5
(4,114 Views)