Sign in Join

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

Mailing lists / fpc-devel / 2004-08

Another TDataSet issue to think about (I think)

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Tony Maro

I've got a TDbf on a form.
I've got a TDataSource attached to it.
I've set an event handler on the DataSource.OnDataChanged.

When I set the TDbf active, it's triggering an OnDataChanged BEFORE the dataset is fully active. If you do reading of data within the event handler, it results in "Operation cannot be performed on an inactive dataset."

Wouldn't the dataset already be open to trigger an OnDataChanged?

-Tony Maro

Reply by email