Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
File() command returns false info
Message
From
21/11/2006 20:43:59
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
21/11/2006 20:34:38
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01171614
Message ID:
01171615
Views:
6
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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform