Sign in Join

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

Mailing lists / lazarus / 2009-10

Publishing TBufDataSet

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Zlatko Matić

Hello.
TMemDataSet lacks Filter and Locate functionalities, so I started to use TBufDataSet instead.
Though I can create BufDataSets through code (add FieldDefs, CreateDataset...) I wanted to design it through IDE (mostly because of event properties).
So, I packaged TBufDataSet (according to Wiki instructions) as component and published it into the IDE.
Now, I can define FieldDefs in the IDE, but, Fields collection does not reflect FieldDefs collection. So, I can create FieldDefs, but Fields are not automatically created according to newly created FieldDefs. Therefore, Dataset1.FieldDefs.Count=7, Dataset1.Fields.Count=0.... Any tips how to synchronize FieldDefs and Fields???

Thanks,

Zlatko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20091008/3b941d86/attachment.html>

Reply by email

Michael Van Canneyt
to Zlatko Matić
Zlatko Mati? wrote 7 lines
Hello. TMemDataSet lacks Filter and Locate functionalities, so I started to use TBufDataSet instead. Though I can create BufDataSets through code (add FieldDefs, CreateDataset...) I wanted to design it through IDE (mostly because of event properties). So, I packaged TBufDataSet (according to Wiki instructions) as component and published it into the IDE. Now, I can define FieldDefs in the IDE, but, Fields collection does not reflect FieldDefs collection. So, I can create FieldDefs, but Fields are not automatically created according to newly created FieldDefs. Therefore, Dataset1.FieldDefs.Count=7, Dataset1.Fields.Count=0.... Any tips how to synchronize FieldDefs and Fields???

You must add a popup-menu (componenteditor interface) to the designer 'Create Dataset' which creates all fields. Much like TClientDataset in Delphi.

Michael.

Reply by email