Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Common Dialog Control
Message
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00593067
Message ID:
00593082
Views:
29
>>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.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform