Tsqlite3dataset error handlin lazarus / 16-Databases ---------------------------------------------------------------------- Kyjan · 2011-01-19 21:17 Hi guys, currently I'm working on a a serious project for lawyers. For database handling I use tsqlite3dataset which is perfect for my demands. The project is in final stage, and I'm trying to implement some error handling. The question: how can I handle the Edatabaseerror events with tsqlite3dataset, becouse the usual try..except structure doesn't work for me. Thanks for the help, Regards Kyjan ---------------------------------------------------------------------- davesimplewear · 2011-01-20 00:32 Luiz usually answers these as he is a developer of this dataset, maybe if you pm he will be able to help you. ---------------------------------------------------------------------- LuizAmérico · 2011-01-20 01:08 For ExecSQL and inherited methods like Open, Append you can use the try except that should work ApplyUpdates does not use exception. You should check the returned value (a boolean) and if false check the ReturnString/ReturnCode methods. In the future will also use exceptions. ---------------------------------------------------------------------- Kyjan · 2011-01-20 12:17 Thank you, guys, I'll do that way.