Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using GETDIR() and Non-drives
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00619033
Message ID:
00619217
Vues:
38
>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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform