Sergey,
Okaaaaay... So, if the file doesn't exists then FullPath() returns the default directory? That's useful... :-\ I would think returning an empty string would make more sense. Oh, well...
Renoir
>Hi Renoir,
>
>That's the way FULLPATH() works. You have to use it in combination with FILE() to make shure that file realy exists
>? FILE( Fullpath('foxhelp.chm'))
>
>>I am using the following to determine a file location:
>>
>>
>>?Fullpath('foxhelp.chm')
>>
>>
>>It is returning:
>>
>>
>>J:\APPS\VFP\FOXHELP.CHM
>>
>>
>>Or whatever the default directory happens to be. The
only place that this file exists is in:
>>
>>C:\Program Files\Microsoft Visual Studio\VFP98\
>>
>>
>>Any ideas why this is going on? BTW, it's possible this is related to another thread I started today, but I can't be certain. Thread #
577376. Thanks!
>>
>>Regards, Renoir