TfrxDataSet.OnNext Strange behaviour

Hello,

I noticed that no matter how many records I have the TfrxDataSet.OnNext repeats twice the last record (it fires twice).

The problem is that in OnNext I create a unique name as

Shape := TfrxShapeView.Create(Band);
Shape .Name := 'Shape_'+MyQuery.FieldByName('my_autoinc').AsString;


... and I get an error that an object with this name already exists.
I debugged it and it fires the last record twice.

What can I do? The Report.DoublePass is false.

Thank you very much

Comments

  • edited 9:27AM

    No comments? >
  • gpigpi
    edited 9:27AM
    No test project - no comments
    Did you try to detrermine last record in TfrxDataSet.OnNext event?
  • edited 9:27AM
    gpi wrote: »
    No test project - no comments
    Did you try to detrermine last record in TfrxDataSet.OnNext event?

    Hello,


    I attached a simple project.
    If you click on the button you will see that one record is repeated twice. (by ShowMessage).
  • gpigpi
    edited 9:27AM
    Try to check for last record in OnNext event

Leave a Comment