From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
10-13-2008 06:52 AM
I have a multi-column listbox on the front panel with columns such as Name, Type, Date Modified, Size.
Is there any way to provide a facility to the user to sort the data in the listbox column-wise during run-time? It should be similar to the one provided in Windows Explorer wherein the user can sort the data either by Name, Type, Size etc.
Thanks
Siddharth
Solved! Go to Solution.
10-13-2008 07:06 AM
10-13-2008 07:34 AM
10-13-2008 08:28 AM
Thanks for your response. I am using Labview 8.2 and hence unable to open the VIs sent by you. Can you please let me know how do I open these Vi's in Labview 8.2.?
Thanks,
Siddharth
10-13-2008 08:31 AM
Thanks for your response. I am using Labview 8.2 and hence unable to open the VI sent by you. Can you please let me know how do I open these VI in Labview 8.2.?
Thanks,
Siddharth
10-13-2008 09:03 AM
10-14-2008 05:59 AM
10-15-2008 02:16 AM
Siddharth D wrote:I have a multi-column listbox on the front panel with columns such as Name, Type, Date Modified, Size.
Is there any way to provide a facility to the user to sort the data in the listbox column-wise during run-time? It should be similar to the one provided in Windows Explorer wherein the user can sort the data either by Name, Type, Size etc.
Thanks
Siddharth
Hi Siddharth,
Have a look at the attachments & pl reply back if they fir your requirement like a 'T'.
Both are saved for LV 8.0.
12-03-2008 10:31 AM
Tried your VI and it only works if there are no identical items in a column and you click on that column. This is because the search function stops the first time it finds a value. Identical values will be removed by the sort.
Also, the test for greater than or equal 0 means that there will be an already sorted result waiting which will execute next time you click in the main part of the list box (which returns a minus 2). This test should be made before the sort.
Sorry,
Carsten
02-06-2018 02:19 PM
I know that this is an ancient thread, but I thought I'd add a sorting algorithm that works with data that has duplicates in it. Carsten is correct that a check should be performed before this sort is executed to ensure that the column index is not negative.