Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where for art Thou, Folder?
Message
De
30/06/2005 15:35:47
 
 
À
30/06/2005 15:21:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01027811
Message ID:
01027836
Vues:
11
>>>>>>Hey Gurus
>>>>>>
>>>>>>How do I determine the existence of a folder or directory?
>>>>>>
>>>>>>Is there a built in function for that?
>>>>>>
>>>>>>Thanks
>>>>>
>>>>>how about DIRECTORY(cDirectoryName)?
>>>>
>>>>Looks good. Thanks
>>>
>>>As far as I remember, Directory() has a serious disadvantage or side effect, I can't remember which, but I always use
>>>lDirExist=ADir(dummy,cDirectoryName,'D')>0
>>
>>
>>hehehe - nice. thats what i love on the fox - there are always many roads to rome. would be good to know what the disadvantages of Directory() are; because i've used it in a few places.
>
>I checked some older messages, and this is what I found. When Directory() was introduced, it returned true for files without extensions, and it returned false for hidden directories. However, it seem that both of these issues have been fixed. But you how it is with old habits...!

thanks Tore

ja - i wish i had had that specific old habit before {bg}
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform