>>>>Has anyone successfully subclassed or used this control to retrieve JUST the path, rather than a filename?
>>>
>>>The Common Dialog Control doesn't have folder selection. You can use following code
Declare integer GetActiveWindow in WIN32API
>>>oShell = createobject("Shell.Application")
>>>oFolder = oShell.BrowseForFolder(GetActiveWindow(), "Please Select folder", 0 )
>>>? oFolder.Items.Item.Path
There're also a few files in the download section that provide such functionality.
>>
>>
>>Yes, FAQ #7780 Enhanced GETDIR() using Shell Object by Ed.
>
>Thanks Nadya. That's exactly what I'm using (see thread #
591621) but have ran into a problem when using it on Win98 (still trying to determine why.)
>
>Thanks,
Hi Patric,
I don't know, if you resolved this problem already. If not, I know, what Andrew Coates has a different more complicated approach to retrieve UNC paths. You can find this info on his site.
If it's not broken, fix it until it is.
My Blog