ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

adding multiple separators in combo box

i want to add multiple separtors in my combo box items but i can add - Value in the items list only once so i get only one separator, how can i add multiple separators in combo box items

Tushar Jambhekar
tushar@jambhekar.com

Jambhekar Automation Solutions
LabVIEW Consultancy, LabVIEW Training
Rent a LabVIEW Developer, My Blog

0 Kudos
Message 1 of 9
(6,507 Views)
A combo box cannot have duplicate values, so you need to uncheck the Value match labels checkbox and give the duplicate seperators other values (e.g. sep1, sep2, sep3).

___________________
Try to take over the world!
0 Kudos
Message 2 of 9
(6,495 Views)

I tried that already, but it doesnt work

it does not allow duplicate values, as well as duplicate item names. also only - creates a separator and not -- or --- etc.

Tushar Jambhekar
tushar@jambhekar.com

Jambhekar Automation Solutions
LabVIEW Consultancy, LabVIEW Training
Rent a LabVIEW Developer, My Blog

0 Kudos
Message 3 of 9
(6,486 Views)
The built-in editor (accessed by right-clicking on the control and selecting "Edit Items...") won't let you do it, so you have to set the items programmatically. For a System Combobox (which I'm assuming is what you're using) you could just do this:

Message Edited by smercurio_fc on 07-05-2007 09:11 AM

Message 4 of 9
(6,479 Views)


@Tushar Jambhekar wrote:

I tried that already, but it doesnt work


Works fine here:

Actually, I would argue that this is a bug in the editor, which should ingnore duplicate hypens if they have a special value.


___________________
Try to take over the world!
Message 5 of 9
(6,462 Views)
Here's what the "Edit Items..." looks like for the System->Combobox on my system (LabVIEW 8.2):

Message Edited by smercurio_fc on 07-05-2007 10:32 AM

0 Kudos
Message 6 of 9
(6,457 Views)

Thanks smercurio_fc

as per your saying i could add up multiple separators programatically.

 

by the way tst which version of labview you are using. i am using 8.2.1

Tushar Jambhekar
tushar@jambhekar.com

Jambhekar Automation Solutions
LabVIEW Consultancy, LabVIEW Training
Rent a LabVIEW Developer, My Blog

0 Kudos
Message 7 of 9
(6,437 Views)

The version it worked in was 7.0, but I'm seeing the same thing you are seeing in the current beta.

I added this thread to the bug list.


___________________
Try to take over the world!
0 Kudos
Message 8 of 9
(6,429 Views)
FYI This is still the case in 8.5. It has been reported with CAR ID 4CG73J69.
 
Stephanie
0 Kudos
Message 9 of 9
(6,294 Views)