*-------------------------------------------------------------------------- Function FileExists(FileName) return !EMPTY(ADIR(laDir,FileName)) endfunc *--------------------------------------------------------------------------I open the table from my exe and run your or my function with DBF() as parameter. It returns .T. (DBF() points to the position where the file is stored on my comp). It is definetly not the on the comp opend because this is ReadWrite and ISREADONLY(DBF()) returns .T.. The DBF() of the table included in the exe is the full path to the location where its compiled from.
>*-------------------------------------------------------------------------- >Function FileExists(FileName) > declare Integer GetFileAttributes in win32api string @ > > return (GetFileAttributes(@FileName) <> -1) >endfunc >*-------------------------------------------------------------------------- >>>Hi,