Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Directory() returns incorrectly?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00111589
Message ID:
00111704
Vues:
12
>>I have a subdirectories on my machine f:\develop\myWork\temp and ..\data
>>
>>? directory('f:\develop\myWork\data') returns .T.
>>? directory('f:\develop\myWork\temp') returns .F. (sometimes .T.)?
>>? directory('data') returns .T.
>>? directory('temp') returns .F. (sometimes .T.)?
>>
>>What gives? I need to know if temp exists, if it doesn't I want to create it on the fly.
>>
>>Does anyone have a better solution to directory()? I don't trust it.
>>
>>Robert
>
>Robert, you may have to be more specific. The directory() command seems to look from your default folder. If you are in "f:\develop\myWork" the directory('data') will work, as will directory('temp'). Buth if you are in "f:\develop\myWork\data" the directory('temp') will show .F.
>
>HTH
>Barbara

Barbara,

I am in the right directory. I'm using additional code before this code to check my current .exe directory using sys(16). I'm in the right place - the function returns .t. and .f. whenever it 'feels' like it!

Robert
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform