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
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)