08-19-2014 12:51 AM
Hi,
I would like to use the file dialog option in the LABVIEW to select a specific file. Right now in the file dialog window, we can navigate through the folders i.e we can go back and forth.
My requirement is, I will specify the path from where the file can be selected(among multiple files). But the thing is, I should not be able to navigate through the folders. i.e either I should select a file from that particular folder or I should cancel it.
Is there any option to do this? Can anyone please help me out?
Thanks,
Iswarya Venkataraju
Solved! Go to Solution.
08-19-2014 02:30 AM
Hi Iswarya,
make your own dialog window. Use ListFiles functiosn to get a list of all files in your specified folder and use a listbox to display them to the user.
The user can select any file from the listbox - you can get user input easily using an event structure…
08-19-2014 06:12 AM
As GerdW suggested this is the common way to restrict the user for the selection of particular set of files.
08-19-2014 06:53 AM
The File Dialog is just your standard Windows File Dialog window. If you want to restrict what the user can do, you will have to make your own. GerdW put up a good suggestion of using a listbox that contains all of the files in that folder.