TDBF component and filepath lazarus / 16-Databases ---------------------------------------------------------------------- adamski · 2009-08-10 23:18 Hi - when using the TDBF component, I can set the FilePathFull to reference files. Works well. However, what I really want is the ability to reference a relative directory - just a sub directory called "data" I've tried various combinations, but cannot get the relative directory to work. E.g. FilePath:= 'data/' Also, I plan to run this application on both Linux and Windows, so I'll like to know how to reference relative directories for both platforms... All the best, and thanks for any help ! [I'm using the latest 0.9.27 release] ---------------------------------------------------------------------- davesimplewear · 2009-08-15 00:03 Hi, I usually use the ExtractFilePath(ParamStr(0)) + 'data' to accomplish this. The delimeter is not needed because this is already included in the function. ---------------------------------------------------------------------- tatamata · 2009-09-13 12:34 I was using extractfiledir(application.exename) to get current directory where executable is. ApplicationPath:=extractfiledir(application.exename); RelativePath:='data'; FullPath:=ApplicationPath+LastDelimiter('/\',ApplicationPath)+Relative Path; Something like that... ---------------------------------------------------------------------- adamski · 2009-09-16 21:22 Thanks for everyone's help!