Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using GETDIR() and Non-drives
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00619033
Message ID:
00619217
Views:
33
>They need to be able to pick them. I just need to know that they picked them. But when they pick them, the dialog is returning "C:" instead of what they actually chose.
>
>Thanks,
>
>Michelle
>
>>Sorry...I guess I misunderstood your question. I thought you did not what things like "My Computer" and "Desktop" from showing up in your dialog. If they are not there the user can't pick them.......

There's an article by Andrew Coates at http://www.civilsolutions.com.au/publications/getfolder.htm that shows how to use SHBrowseForFolder API.

Another way is to use the Shell.Application object
Declare integer GetActiveWindow in WIN32API
oShell = createobject("Shell.Application")
oFolder = oShell.BrowseForFolder(GetActiveWindow(), "Please Select folder", 0 )
? oFolder.Items.Item.Path
? oFolder.Items.Item.Name
There is an article by George Tasker in the July 2000 issue of the VFUG newsletter (www.vfug.org) about that.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform