LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Combo Box Issues + Bug

The normally reliable Combo Box is giving me some grief today.

 

1)  Why is it again that duplicate values are not allowed?  A bit of a peeve since sometimes I like to map multiple strings to one value, and I don't really see an issue.  Ran into this a long time ago, hoped it had changed by LV10, but no.

2)  It seems that we are still allowed to enter duplicate strings programmatically, but not via the editor.  Known issue, but still hanging around in LV10.

3)  Bug? LV10 crashes hard when I try to replace a System Combo Box with values added by a Modern Combo Box or vice versa.  Empty works fine, as soon as I add values, good night.

Message 1 of 10
(3,543 Views)

To 1) -> that's working against the auto-complete function, I guess.

 

Good night as well.

 

Felix

Message 2 of 10
(3,528 Views)

 


@f. Schubert wrote:

To 1) -> that's working against the auto-complete function, I guess.


The auto-complete function works on the Items, and ironically you can programmatically add duplicate Items.  If you do, the returned value appears to always correspond to the first of the duplicates, regardless of which item you select via the pull-down menu.  I assume the backdoor for duplicate Items was opened to allow multiple separators.

 

 

Thanks for verifying the crash, hope you saved your work....

0 Kudos
Message 3 of 10
(3,520 Views)

Didn't test that crash. 'Good night' was written when looking at the clock, I'm much over the time...

 

Felix

0 Kudos
Message 4 of 10
(3,514 Views)

I see, it has crashed two different machines for me now.  The crashing doesn't really bother me since I am replacing these things about once every few years, I only noticed it when checking for differences in behaviour between System and Modern Combo Boxes.

 

Guten Abend.

0 Kudos
Message 5 of 10
(3,507 Views)

Darin, 

 

Just to confirm the 'Good Night' behavior you are seeing Right-Click Replace Modern combo with System? Or System to Modern?

 

In replacing a populated Modern with a System, all my values were stripped save the current active value. In all cases, not expected behavior. I would like to forward the appropriate CAR information. I simply want to confirm the operation with you.

 

Thank You, 

Patrick Corcoran
Application Engineering Specialist | Control
National Instruments

0 Kudos
Message 6 of 10
(3,456 Views)

When I create a system combo box, add a couple of items (uncheck values match items), then try to replace with modern combo box, I get a hard crash.  On Windows XP it just shuts down.  On Windows 7 I get some strange dialog box that says LabVIEW.exe - No Disk, when I press continue or cancel LV shuts down.

0 Kudos
Message 7 of 10
(3,451 Views)

@Darin.K wrote:

[...]

3)  Bug? LV10 crashes hard when I try to replace a System Combo Box with values added by a Modern Combo Box or vice versa.  Empty works fine, as soon as I add values, good night.


Confirmed. CAR?

Richard






0 Kudos
Message 8 of 10
(3,375 Views)

Hello,

 

I can't seem to replicate in 2010. I have posted a video capture of the procedure I am going through. Please let me know if I am not correctly demonstrating the process you have described:

 

http://www.screencast.com/users/NIVideoTutorials/folders/Jing/media/621f57d0-0713-47f4-ab7e-1c57f7cc...

 

Please let me know how to modify the procedure to reproduce this issue.

 

Thank You, 

 

Patrick Corcoran
Application Engineering Specialist | Control
National Instruments

0 Kudos
Message 9 of 10
(3,336 Views)

EDIT:

 

I forgot to un-check the 'Values Match Items' box. Once I did that, replacing a System Combo Box with a Modern crashed LabVIEW. It generated a CPP error log that I have attached to the following CAR #255066. If LabVIEW generates a log file on your systems, can you please attach it to this thread?

 

Also, I was able to reproduce the crash only once. It crashed on my first attempt. Every following iteration, the control is replaced successfully. 

 

Thank you for your time.

Patrick Corcoran
Application Engineering Specialist | Control
National Instruments

0 Kudos
Message 10 of 10
(3,328 Views)