TBufDataset.IsEmpty what is that? lazarus / 16-Databases ---------------------------------------------------------------------- lainz · 2020-12-21 15:23 Hi, what is the meaning and utility of TBufDataset.IsEmpty method? ---------------------------------------------------------------------- lainz · 2020-12-21 15:26 Because here says: https://www.freepascal.org/docs- html/current/fcl/db/tdataset.isempty.html QuoteIsEmpty returns True if the dataset is empty, i.e. if EOF and TDataset.BOF are both True, and the dataset is not in insert mode. I was using this before saving to SQLite database to check there is data to save in the buf dataset, but it fails sometimes saying it is empty, I removed it and it saves the data in the database anyways, so is strange for me. Maybe because the data sometimes is in edit mode and not insert mode? ---------------------------------------------------------------------- cdbc · 2020-12-21 15:36 Hi You can edit the source yourself, and when it works, submit a patch, just a thought  Regards Benny ---------------------------------------------------------------------- lainz · 2020-12-21 15:39 Quote from: cdbc on December 21, 2020, 04:36:36 pmHi You can edit the source yourself, and when it works, submit a patch, just a thought  Regards Benny Hi thanks, but I'm not sure for that I'm asking =) I think I was using it wrong, I don't think it has a bug. ---------------------------------------------------------------------- lainz · 2021-01-28 17:09 Any ideas? This is making trouble with our project. Something is wrong in the state of the bufdataset isEmpty. I can't reproduce but it happens on our customers machines. Sometimes is true and sometimes is false, even with the same number of rows > 0