Sign in Join

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

Mailing lists / lazarus / 2018-01

I've been defeated. (Dataset Problem)

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Donald Ziesig

Hi All!

I give up! :'(

After four solid days of hacking through undocumented code, I have to admit defeat.

I have a component derived from TDataSet.  This component uses TFieldDefs and TIndexDefs.  The problem is that when I edit the TIndexDef, the underlying form does NOT see the change!  When I edit the TFieldDef the form does see the change.

As a result, if I want to update an IndexDef, I must make the change, then change ANYTHING ELSE on the form (and change it back) so that the change to the IndexDef is saved and recompiled.  While this is a work around, I invariably forget to make the second change and lose any updates to the IndexDef.

Can anyone help me with this?

Thanks,

Don Ziesig

Reply by email

Michael Van Canneyt
to Donald Ziesig
Donald Ziesig wrote 19 lines
Hi All! I give up! :'( After four solid days of hacking through undocumented code, I have to admit defeat. I have a component derived from TDataSet.  This component uses TFieldDefs and TIndexDefs.  The problem is that when I edit the TIndexDef, the underlying form does NOT see the change!  When I edit the TFieldDef the form does see the change. As a result, if I want to update an IndexDef, I must make the change, then change ANYTHING ELSE on the form (and change it back) so that the change to the IndexDef is saved and recompiled.  While this is a work around, I invariably forget to make the second change and lose any updates to the IndexDef. Can anyone help me with this?

I have seen your bugreport about it. I assigned it to myself, but I need some time to debug it. If you need a solution FAST, someone else will need to look at it...

Michael.

Reply by email

Donald Ziesig
to Michael Van Canneyt
Michael Van Canneyt wrote 32 lines
On Wed, 17 Jan 2018, Donald Ziesig via Lazarus wrote: > Hi All! > > I give up! :'( > > After four solid days of hacking through undocumented code, I have to > admit defeat. > > I have a component derived from TDataSet.  This component uses > TFieldDefs and TIndexDefs.  The problem is that when I edit the > TIndexDef, the underlying form does NOT see the change!  When I edit > the TFieldDef the form does see the change. > > As a result, if I want to update an IndexDef, I must make the change, > then change ANYTHING ELSE on the form (and change it back) so that > the change to the IndexDef is saved and recompiled.  While this is a > work around, I invariably forget to make the second change and lose > any updates to the IndexDef. > > Can anyone help me with this? I have seen your bugreport about it. I assigned it to myself, but I need some time to debug it. If you need a solution FAST, someone else will need to look at it... Michael.

Hi Michael,

Now that I figured out what the underlying problem is and have a work around, I can wait. ;-)

Thanks,

Don

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20180117/09398664/attachment.html>

Reply by email