* * *

Author Topic: [Solved] What is the most stable dataset in memory?  (Read 939 times)


  • Jr. Member
  • **
  • Posts: 96
[Solved] What is the most stable dataset in memory?
« on: March 29, 2017, 12:37:56 pm »
I tried to mimic TClientDataSet of Delphi, using TMemDataSet and TBufDataSet. But I found that both behave a little bit differently.


With TMemDataSet, I tried to edit a field, so I used

    memds.Fieldbyname('a') := 'a';

This results in adding a new record leaving the original one.

With TBufDataSet, the previous procedure did not do anything.  Do I need anything more to store them?


Regarding "Clear",  TMemDataSet.Clear(false) works fine. It deletes all the records, leaving the dataset structure (like fields).  But not sure how TBufDataSet.Clear works. It seems to clear the field definitions as well.

Am I right? Please advise.  Thank you.
« Last Edit: March 29, 2017, 05:21:48 pm by egsuh »


  • Hero Member
  • *****
  • Posts: 5764
Re: What is the most stable dataset in memory?
« Reply #1 on: March 29, 2017, 02:00:32 pm »
You can edit it  as solved..
recommends {$macro on}{$define Silly:=ObjFpc}



Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus