>>THanks Hilmar that was my original problem (the embedded jpg that was on a report) but in looking for the answer to the same jpg always showing up ( and not yet knowing why) thats when I found this odd file() behavior in the trace & watch windows...
>
>I THINK this is the behavior of file() vs. adir(), then, and perhaps the reason that some people complain about the file() function:
>
>
file() returns whether a file can be found. It may be in the current directory, along the PATH, or embedded in the EXE.
>
>
adir("myfile.ext") > 0 returns .T. if the file is found
in the current folder, or in the specified folder, since that is what adir() looks for.
Hi Hilmar,
Still working :(
I'm one of those complaining about file() and I severe I saw it to return .T. when the file didn't exist and no where it could find it from (like inclusion in project).
But it was long time ago, might be a bug in a previous version which I don't remember. If as a PUTM you had the ability to search for msgs older than 2 years I'm sure I posted or replied a question about it with reproducing:( That's actually why I have IsFile() function for a long time.
Cetin