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
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
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).