>>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...
>>
>
>On other hand this FULLPATH() behavior offers easy way to save current foxpro directory
lcSaveDefDir = FULLPATH("")
>SET DEFAULT TO (lcNewPath)
>...
>SET DEFAULT TO (lcSaveDefDir )
>
I use it all the time.
My two favorite tricks are Set("Directory") which returns the current directory without the final backslash, and Fullpath(curdir()) which does the same, with the backslash.