cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
Choose Language Hide Translation Bar
miguello
Level VI

Why can't I have duplicate values in List Box?

If I run this:

lb = List Box({"qwerqwerr", "qwerqwerr"});

nwTest = New Window("Test ListBox Duplicate values", lb);

I will get a List Box with only one line. Why?

List Box accepts lists, lists can have duplicate values, why can't Lis Box have duplicate values?

If I pass a list with duplicate values to List Box, what's shown in the List Box is not the list that was passed with now additional warnings or errors.

IS it by design? Why? Any workarounds?

11 REPLIES 11
miguello
Level VI

Re: Why can't I have duplicate values in List Box?

You named two different String Col Boxes in two different windows the same name. So the second assignment overwrites the first one.

Funny behavior => no matter buttons in which window I press, the second window updates.

Re: Why can't I have duplicate values in List Box?

That 'control' is a composite object starting with an outline box. You can investigate the structure (display tree) by right-clicking the outline box and select Edit > Show Tree Structure. The list is presented in a List Box, the same object you started with.

 

Screenshot 2022-12-01 at 9.38.51 AM.png