Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getdir and maintaining case
Message
 
 
À
24/05/2008 05:00:37
Denis Filer
University of Oxford
Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01319328
Message ID:
01319368
Vues:
14
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
lcRootFolder = "..."
*lnParentWindowhWnd = Thisform.hWnd
*lnParentWindowhWnd = _SCREEN.hWnd
lnParentWindowhWnd = 0

oShell = createobject("Shell.Application")
oFolder = oShell.BrowseForFolder(lnParentWindowhWnd, "Please Select folder", 0, lcRootFolder )
? oFolder.Items.Item.Path
There is an article by George Tasker in the July 2000 issue of the VFUG newsletter (www.vfug.org) about it. See also http://msdn.microsoft.com/en-us/library/bb774065.aspx

>
>using lcdir = getdir('','','',64)
>
>is there a way to maintain the original folder case? Many thanks.
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform