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.
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to