Karissap Posted July 5, 2007 Report Share Posted July 5, 2007 I have a program which allows users to collect data from multiple folders. In the browse options there is an option to select multiple files by dragging over a selection but not multiple folders. At the moment I'm using an array and a pop up that asks the user if they want to add another folder to the array but it's a bit slow and tedious for the user. Even typing the paths or dragging and dropping one folder at a time is slow. Is there an easier way to select multiple folders even by using something like clipboard or drag and drop? Quote Link to comment
VDB Posted July 5, 2007 Report Share Posted July 5, 2007 The VI: File I/O | "File Dialog" allows selection of multiple elements. VDB Quote Link to comment
Karissap Posted July 5, 2007 Author Report Share Posted July 5, 2007 QUOTE(VDB @ Jul 4 2007, 04:33 PM) The VI: File I/O | "File Dialog" allows selection of multiple elements.VDB The "File Dialog" VI still only lets you select multiple files: Here is the configuration screen when "Limit selection to single item" is unchecked http://forums.lavag.org/index.php?act=attach&type=post&id=6304''>http://forums.lavag.org/index.php?act=attach&type=post&id=6304'>http://forums.lavag.org/index.php?act=attach&type=post&id=6304 The "File", "Folder" or "File or Folder" Options are greyed out. I've tried using the File Dialog vi and can't select multiple folders, only files Quote Link to comment
Karissap Posted July 17, 2007 Author Report Share Posted July 17, 2007 I worked out a solution using the windows clipboard. I can now paste a windows file/folder selection to an array. Here's the solution if anyone is interested. The GetClipboardData.vi can get either text, a picture or a file selection from the clipboard. http://forums.lavag.org/index.php?act=attach&type=post&id=6361 Quote Link to comment
crelf Posted July 17, 2007 Report Share Posted July 17, 2007 QUOTE(Karissap @ Jul 16 2007, 02:32 PM) I worked out a solution using the windows clipboard. A couple of points: I think your "ctrl+V" text onthe FP should be "ctrl+C" Have you thought about submitting this to the http://forums.lavag.org/downloads.html' target="_blank">LAVAcr? I think it'd be a good place for it... Quote Link to comment
Yair Posted July 17, 2007 Report Share Posted July 17, 2007 I'm impressed by the code (and the icons ) and it doesn't seem to be that much of a hack, but wouldn't it be simpler (and definitely more platform independent) to write a simple file browser using a listbox, where you can enable multiple selection? Quote Link to comment
Karissap Posted July 18, 2007 Author Report Share Posted July 18, 2007 QUOTE(crelf @ Jul 16 2007, 03:24 PM) A couple of points: I think your "ctrl+V" text onthe FP should be "ctrl+C" Have you thought about submitting this to the LAVAcr? I think it'd be a good place for it... Hey thanks, I missed that, woops, I think I had paste on the brain. I think I will submit it to the LAVAcr. QUOTE(yen @ Jul 17 2007, 02:53 AM) I'm impressed by the code (and the icons ) and it doesn't seem to be that much of a hack, but wouldn't it be simpler (and definitely more platform independent) to write a simple file browser using a listbox, where you can enable multiple selection? Thanks, I love making icons, I use the tango icons a lot, I found out about them from http://forums.lavag.org/index.php?showtopic=8569&st=0&p=32514&' target="_blank">this thread, the icons score double points with me cause I use Ubuntu at home (so I am all for platform independence). The listbox browser is a really good idea, I didn't think about doing it that way. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.