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:
00111707
Vues:
28
>>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
>
>As Barbara indicated, there may be something else going on here. In all likelihood, the function is calling the API with the parameter you supply. You might what to check the results that the function returns against that the API does. There's a class in the download section that I wrote that uses the API to search for files and directories (Winfiles in Win32 and other APIs). If the results differ, then I would suspect a bug in VFP.


George,

I am always hesitant to include files downloaded without getting source code. I downloaded a drive info class previously but feared it failing in the future (due to upgrades in VFP or Windows) and not being able to modify the source. Is your source code included? If so - I will get it. By the way, thanks for the API on the video resolution. It works great!

Robert
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform