>>>That's the way VFP FILE() function works. I guess they share the same code. It has been in FoxPro forever so it's a feature.
>>>
>>>>This is 'funny' :
>>>>
>>>>If I type MODIFY COMMAND F:\EFFE in the command window, it will open EFFE.PRG if it exists in F:\. However, if it doesn't exist there, but if there is an EFFE.PRG along the PATH, it will open that one. It shouldn't. It's a bug or at least an unwanted feature.
>>
>>I disagree. File() doesn't work like that. It returns .F. on my system if it is not available on given path.
>>
>
>Sure it does. You didn't test correctly.
How should I test? There is a prg named Tree2Grid.Prg in current folder:
? file('tree2grid.prg') returns .T.
? file('f:\tree2grid.prg') returns .F.
Where is my error in testing?
Cetin