LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem sorting in a string array

Hello everyone, I would like to remove duplicates from my drop-down menu via the code I send you. The problem is that the sorting of my code is done as follows: NAM then ATP ... up to Rep-topo.
While I would have wanted to do the sorting among all NAMs, then a sorting among all ATPs ... To have an easier to use drop-down menu.
Thank you for your help.
0 Kudos
Message 1 of 4
(246 Views)

You forgot to attach a few .lvm datafiles so we cannot really test.

Also, all your controls should have typical default values so we don't need to guess.

You need to tell us how you use it and exactly want result you expect based on what event executes.

 

From a casual glance, there are some seriously poor coding habits. For example why would you read values from value property nodes inside a tight loop if once before the loop would be safer and more efficient. I doubt you are expecting the values to change between iterations, right? Why are none of the controls connected to anything? If you need alternative access to controls, use local variables, not value property nodes. Correctly done, none are probably needed.

 

altenbach_0-1786978854700.pngaltenbach_0-1786978854700.png

 

0 Kudos
Message 2 of 4
(172 Views)

To be honest, I'm a beginner on LabVIEW, I kept this code because it seems functional to me to make my drop-down menu I attach you some empty .lvm text files for you to want the problem

0 Kudos
Message 3 of 4
(144 Views)

@Problem LabVIEW wrote:

I attach you some empty .lvm text files for you to want the problem


I doubt empty lvm files would be useful. There is nothing attached.

0 Kudos
Message 4 of 4
(104 Views)