Possible bug, or, my missuse...
Hi Team,
In order to put a line number on each detail row of a report I have added a Calc variable at the start of the row.
In the Calc Tab I have defined the Variable as "Value :=Detail.Count; ".
I note on the Properties it starts at 0. No biggie.
When I preview the report I get the following sequence...
0
2
3
4
5
And the resta re in sequence up to the last record.
Ummm. What happened to row 1?
Regards,
Ian
In order to put a line number on each detail row of a report I have added a Calc variable at the start of the row.
In the Calc Tab I have defined the Variable as "Value :=Detail.Count; ".
I note on the Properties it starts at 0. No biggie.
When I preview the report I get the following sequence...
0
2
3
4
5
And the resta re in sequence up to the last record.
Ummm. What happened to row 1?
Regards,
Ian
This discussion has been closed.
Comments
To number rows use try using the DBCalc component set to dcCount. Optionally
leave the datafield unassigned.
Best regards,
-
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Hi Nard,
Cheers, that works fine. Much simpler.
Is there an issue with the way I did it and the resultant sequence generated?
Regards,
Ian
To use Variable, set DataType to dtInteger. In the OnCalc code
Value := Value = 1;
The timing of the Variable.OnCalc is such that it using Detail.Count does
not work.
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com