07-01-2017 05:04 PM
Hey
I have text files in a folder and I am looking to list out all the files in the folder and then manually select a few files out of it ( while the program is running) and average the data in the selected file alone. Using list folder, I could get the file list. But since the file list is in array of string format , I can't do any selection. I also tried combo box. It can select only one file at a time. Is there any other way ?
Many Thanks
Neeraj
Solved! Go to Solution.
07-01-2017 06:45 PM
Load the names as string into a listbox and configure it for multiple selections. The value will be an array of indices that you can use the get the subset of files you want.
Use ctrl-click to select individual files.
07-01-2017 06:45 PM
Use a listbox (& set the selection mode), or use a file dialog set to allow multiple selection.
07-01-2017 09:06 PM
Hey ,
Thanks for the reply. I loaded the string into listbox and configured it to multiple selection. But how to retrieve the value of the indices that is selected in the list box?
07-01-2017 09:13 PM
As I said, the "value" of the listbox is an array of indices. Just autoindex it on a for loop containing an "index array" to get the elements of your array of paths.
07-01-2017 10:08 PM
Hey
Thank You so much. It worked. 🙂