Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
File() command returns false info
Message
De
22/11/2006 15:44:24
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01171614
Message ID:
01171923
Vues:
8
>Viv
>from actual text from help file its obvious that it'll only look for in current path if we dont specify full path. see help contents below
>
>"You can include a path with the file name to search for a file in a directory or on a drive other than the current directory or drive.
>
>If you do not include a path with the file name, Visual FoxPro searches in the default directory for the file. If it cannot find the file in the default directory, Visual FoxPro searches along the Visual FoxPro path, which is established with SET PATH. "

I agree that the observed behavior is queer, or at least, inconsistent with the manual.

It seems you should just use the workaround of using adir(), if you want to make sure that VFP does not look anywhere except the desired directory.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform