[Lazarus] Publishing TBufDataSet

Michael Van Canneyt michael at freepascal.org
Thu Oct 8 12:38:13 CEST 2009



On Thu, 8 Oct 2009, Zlatko Matić wrote:

> 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.


More information about the Lazarus mailing list