How can my Delphi application see the difference between a
TDataSet.Insert and TDataSet.Append in the method TDataSet.OnNewRecord ?
Thanks,
Hubert
Regards, Paul.
There is no dsAppend state.
Hubert
Paul Hughes schreef:
Hi Hubert,
I'm sorry, you're quite right. I think I must have been thinking of dsInsert
versus dsEdit.
Normally, if you are in control of adding the record, you would either be
calling insert or append. Is it possible you could set a flag here which you
can check later on in the process?
What is you're trying to accomplish with this? Maybe there's a simpler or
alternative way to do what you wanted.
Regards, Paul.
There is no way using TDataSet properties/events. Checking VCL source
code (DB.PAS) you can see that TDataSet.Insert and TDataSet.Append
methods are quite the same.
And worse, VCL won't let you override those methods in you own custom
descendant.
Regards