08-08-2009 03:57 PM
Hello,
I have been having trouble figuring out how to add content to a listbox in the order that the content is acquried. I am using a multicolumn listbox as a 'quick report' which shows recent measurement data for the user to view immediately after a measurement is complete. The problem I have is that when a new row is added to the listbox it will sort alphabetically (see quickreport.jpg). I have attempted to make the first column a time stamp and breaking out the name of the file as a row header but nothing seems to work. I think it could just be that I have been looking at this the wrong way and I need a fresh perspective.
In the image "quickreport.jpg" you will notice that measurements "a_0001.txt" and "a_0002.txt" were followed in time by "x_0001.txt" and "x_0002.txt" which was then followed by "b_0001.txt". "b_0001.txt gets inserted between "a" and "x" measurements.
Any help would be appreciated!
Thanks,
amproctor
08-08-2009 05:41 PM
It seems nothing is sorted here
08-08-2009 09:39 PM - edited 08-08-2009 09:40 PM
Thanks NicB,
I definitely can make what you describe work. I have found out that the way in which I am actually saving and reading the data is the reason it will not sort according to an index. I use the List Folder function to read measurement files. Thanks for the help but I will have to rewrite most of my program to make this work Where you build your array with the random characters and time stamp I have a compiled 2D array which is out of order.
Anyway, thanks!
-amproctor
08-08-2009 10:53 PM
08-08-2009 11:25 PM
Thanks!
This actually will work very well for what I indend to do. I appologize for the poorly phrased question!