Jump to content
Sign in to follow this  
gcue

fileselectfolder alternative?

Recommended Posts

gcue

I am trying to use FileSelectFolder to allow the user to type in a UNC path.

Unfortunately it doesn't seem to support it (even with the flags).

Is there an alternative?

Thanks in advance.

Share this post


Link to post
Share on other sites
evilertoaster

MsgBox(0,"",FileSelectFolder("Tets","C:\",4))

That seemed to work fine...

You can't necessarily browse to it, but if you type it in the edit box it works.

What in particular did you mean by 'doesn't support it' ?

Share this post


Link to post
Share on other sites
gcue

hmmm i get a blank msgbox back...

Share this post


Link to post
Share on other sites
evilertoaster

I do not...

what is the path you're typing in to the edit box?

(using v3.3.0.0 btw)

Edit: Although i do see -

Fixed #659: Documented that UNC paths are not supported when using FileSelectFolder().

and it does say that in the help file...Maybe mines just a fluke that it works... (I'm also using Server 2008...maybe it's an API bug they fixed?)

Edit2: Humm, also there's this- http://www.codeproject.com/KB/dialog/XBrowseForFolder.aspx

Edited by evilertoaster

Share this post


Link to post
Share on other sites
gcue

im using v3.2.12.1

does the path need to be valid? im not at work so i can test a valid unc path.

also this is what im typing:

\\d0029232\c$\eservice materials

Edited by gcue

Share this post


Link to post
Share on other sites
evilertoaster

The path does need to be valid, when I type in something that isn't I get a blank string like you do and @error is set to 1.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×