* * *

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

egsuh

  • New member
  • *
  • Posts: 14
[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.

Q1.

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

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

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?


Q2. 

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 »

Thaddy

  • Hero Member
  • *****
  • Posts: 3996
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..
"Logically, no number of positive outcomes at the level of experimental testing can confirm a scientific theory, but a single counterexample is logically decisive."

 

Recent

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