Jump to content
Sign in to follow this  
Karissap

Select Multiple Folders

Recommended Posts

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?

Share this post


Link to post
Share on other sites

The VI: File I/O | "File Dialog" allows selection of multiple elements.

VDB

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

QUOTE(crelf @ Jul 16 2007, 03:24 PM)

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)

;)

Thanks, I love making iconsicon4.gif, 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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.