how to change directory of already built file? lazarus / 10-Designer ---------------------------------------------------------------------- Srgjan-LDTeam · 2014-01-26 00:01 i built a lazarus file in one folder and unit in other folder by mistake.. and know i cant save them both im one place because everytime i HIT RUN the files are creating in the folder where i dont like them to be.. and also how to rewrite the application .lpr? i cleared and now i cant run the GUI.. the lpr is empty because i cleared everything in it.. Code: [Select]TimeCounter.lpr(1,1) Fatal: Syntax error, "BEGIN" expected but "end of file" found tell me what to do while i still have the code and the form made... pic1: http://prntscr.com/2ml72z pic2: http://prntscr.com/2ml73g ---------------------------------------------------------------------- taazz · 2014-01-26 00:10 where the compiled units or program are placed can be defined on the project's options on the paths screen. If you have destroyed the lpr file you need to create a new application add the forms you already have in it and then save it replacing the old one, there is no other way to recreate it. ---------------------------------------------------------------------- Srgjan-LDTeam · 2014-01-26 00:24 i somehow recreate it and now it says: Code: [Select]TimeCounter.lpr(10,21) Error: Duplicate identifier "TIMECOUNTER" TimeCounter.lpr(17,38) Error: Identifier not found "TTimeCounter" TimeCounter.lpr(17,51) Fatal: Syntax error, "." expected but ")" found now they are in same folder but still it says that.. pic: http://prntscr.com/2mlhkg ---------------------------------------------------------------------- Leledumbo · 2014-01-26 06:45 Is one of the unit is also named TimeCounter? You can't have that as the .lpr name or identifier after program clause. That would confuse the compiler as two names exist referring to different things. ---------------------------------------------------------------------- Srgjan-LDTeam · 2014-01-26 10:40 timecounter - unit timecounterproject - lpr so its not the same :/ ---------------------------------------------------------------------- Leledumbo · 2014-01-26 10:58 Quotetimecounter - unit timecounterproject - lpr so its not the same :/Your screenshot says different thing, even the editor highlights it.