Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-06

: DBGrid with Multiselect not select all

6 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Luca Olivetti

En/na Mantis Bug Tracker ha escrit:

[Replying here, since the bug is read only]

The following issue has been RESOLVED. ====================================================================== http://bugs.freepascal.org/view.php?id=13565

[...]

Luca Olivetti: it would be nice if could make a patch for memdataset, if not the bug reports are now linked so Joost can take a look at your findings, thanks.

Mine is just a quick hack (in fact, I discovered the bug in TMemDataset while debugging the same issue reported here), I think a proper solution, which could be to either split the bookmark and the flags or simply assign the correct Bookmarksize in TMemDataset constructor, is best left to someone familiar to TDataset internal, since I don't know the possible side effects of both solutions.

Bye

Luca Olivetti Wetron Automatizaci?n S.A. http://www.wetron.es/ Tel. +34 93 5883004 (Ext.133) Fax +34 93 5883007

Reply by email

Joost van der Sluis
to Luca Olivetti

Op woensdag 17-06-2009 om 10:05 uur [tijdzone +0200], schreef Luca Olivetti:

Show quoted text 18 lines
En/na Mantis Bug Tracker ha escrit: [Replying here, since the bug is read only] > The following issue has been RESOLVED. > ====================================================================== > http://bugs.freepascal.org/view.php?id=13565 [...] > Luca Olivetti: it would be nice if could make a patch for memdataset, if > not the bug reports are now linked so Joost can take a look at your > findings, thanks. Mine is just a quick hack (in fact, I discovered the bug in TMemDataset while debugging the same issue reported here), I think a proper solution, which could be to either split the bookmark and the flags or simply assign the correct Bookmarksize in TMemDataset constructor, is best left to someone familiar to TDataset internal, since I don't know the possible side effects of both solutions.

Actually, the best fix is not to use TMemDataset but use TBufDataset instead.

Joost.

Reply by email

Luca Olivetti
to Joost van der Sluis

En/na Joost van der Sluis ha escrit:

Actually, the best fix is not to use TMemDataset but use TBufDataset instead.

I cannot find TBufDataset in my components palette, and a search for tbufdataset in the lazarus components directory yields nothing. OTOH lazarus comes with a TMemDataset component (MemDs).

Bye

Luca Olivetti Wetron Automatizaci?n S.A. http://www.wetron.es/ Tel. +34 93 5883004 (Ext.133) Fax +34 93 5883007

Reply by email

Luca Olivetti
to Luca Olivetti

En/na Luca Olivetti ha escrit:

Show quoted text 8 lines
En/na Joost van der Sluis ha escrit: > Actually, the best fix is not to use TMemDataset but use TBufDataset > instead. I cannot find TBufDataset in my components palette, and a search for tbufdataset in the lazarus components directory yields nothing. OTOH lazarus comes with a TMemDataset component (MemDs).

I investigated a bit more (neither the wiki nor google were very useful) and it seems that TBufDataset is just an abstract dataset to be used by other datasets (in fact it's only used by TCustomSQLQuery), so I don't think it's a replacement for a TMemDataset (a table you store in memory, with no real database connected).
Rxnew has a TRxMemoryData that's a possible replacement and uses the correct Bookmarksize.

Bye

Luca Olivetti Wetron Automatizaci?n S.A. http://www.wetron.es/ Tel. +34 93 5883004 (Ext.133) Fax +34 93 5883007

Reply by email

Joost van der Sluis
to Luca Olivetti

Op woensdag 17-06-2009 om 17:16 uur [tijdzone +0200], schreef Luca Olivetti:

Show quoted text 15 lines
En/na Luca Olivetti ha escrit: > En/na Joost van der Sluis ha escrit: > >> Actually, the best fix is not to use TMemDataset but use TBufDataset >> instead. > > I cannot find TBufDataset in my components palette, and a search for > tbufdataset in the lazarus components directory yields nothing. > OTOH lazarus comes with a TMemDataset component (MemDs). I investigated a bit more (neither the wiki nor google were very useful) and it seems that TBufDataset is just an abstract dataset to be used by other datasets (in fact it's only used by TCustomSQLQuery), so I don't think it's a replacement for a TMemDataset (a table you store in memory, with no real database connected).

It's not a abstract dataset, you can use it. But it's true that it's also used by TCustomSQLQuery.

You can see TBufDataset as something like the TClientDataset of Delphi. Main difference is that you can hook up some data to a TClientDataset using a provider. With TBufdataset you can connect to the data by adding a descendent of it.

But it's also possible to use streams to read/write the data, or simply files. Just like TMemDataset.

Joost

Reply by email