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:
00619120
Vues:
35
I said it wasn't legitimate because you stated originally that clicking on Desktop returns "C:\" and this simply isn't the case. However, that won't solve the problem. Greg and Doug have replied with other folders that do return only "C:\". I did a search in MSDN on this, but haven't come up with anything useful yet. Hopefully it is a solvable problem, and doesn't leave you hanging, but so far this appears to be the case. Otherwise you will have to roll your own Getdir() (maybe with Bela Bodecs treeview control), or limit the users choices.
jfh

>The question is perfectly legitimate. If the user selects "My Computer", I want "My Computer", not whatever the default drive happens to be. It may be that what I want is not possible, but that does not make my question illegitimate.
>
>Michelle
>
>
>>Sorry, but you're actual question is not legitimate, at least not on my tests. If I do
? GETDIR("c:\","test","test")
>>and click on My Computer, it returns "C:\", which is the default drive for My Computer.
>>If I click on My Documents, the return value is "C:\DOCUMENTS AND SETTINGS\JOHN.HERRING\MY DOCUMENTS\".
>>If I click on Desktop, the return value is "C:\DOCUMENTS AND SETTINGS\JOHN.HERRING\DESKTOP\". That is what is happening here. Using VFP7 on Win2k.
>>jfh
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform