Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DIRECTORY() Command
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00743555
Message ID:
00743570
Vues:
15
This message has been marked as a message which has helped to the initial question of the thread.
>I need to check for the existence of a directory under Foxpro 2.6. The command is DIRECTORY(cExpression) in VFP 7.0, but this function/command does not exist in 2.6. How can I do this in 2.6?
>
>Grace and peace,
>
>John

Two methods spring to mind.

Use ADIR() and check the resulting array if it returns more than 0.

Or FCreate() a temp file, and erase the temp file. The LLFN's don't trigger error conditions if they fail -- they just return negative numbers.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform