Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
File() command returns false info
Message
De
21/11/2006 20:43:59
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:
01171615
Vues:
7
This message has been marked as the solution to the initial question of the thread.
IIRC, file() returns .T. whenever the file can be found at all, i.e., along the search path.

I understand adir() is safer. Something like this:
if adir(TempArray, "MyFile.txt") > 0
  * File exists
endif
>Hi friends
>am running a fxp from within our app. what it simply does is look there is only copy of .fxp files in our current path.
>the fxp name "testfxps.fxp"
>
>for some reason following returns .T. even though the file does not exist in the directory.
>
>if File('c:\fxps\testfxps.fxp')
> --some more code--
>endif
>
>is it bcoz the program currently executing above code is "testfxps.fxp" is itself?
>how do i fix that ?
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