johnstrang
Technical User
Hi,
I have a simple problem which I cannot understand.
Using CR 8.5, I simply want to number the groups in a report - so required output is
1 First Group Name
detail lines
2 Second Group Name
detail lines
3 Third Group Name
detail lines
etc.
In RH I have a formula init_line_nr
In GF1 I have formula inc_line_nr
In GH1 I have formula line_nr
Problem is that variable line_nr is being reset to 1 for each group. I have tried several options, without any success, including defining the variable line_nr as global.
Why is it doing this? Surely it should increment at the end of every group.
Any information will be gratefully received.
John
I have a simple problem which I cannot understand.
Using CR 8.5, I simply want to number the groups in a report - so required output is
1 First Group Name
detail lines
2 Second Group Name
detail lines
3 Third Group Name
detail lines
etc.
In RH I have a formula init_line_nr
Code:
numbervar line_nr := 1 ;
In GF1 I have formula inc_line_nr
Code:
numbervar line_nr := line_nr + 1 ;
In GH1 I have formula line_nr
Code:
numbervar line_nr ;
Problem is that variable line_nr is being reset to 1 for each group. I have tried several options, without any success, including defining the variable line_nr as global.
Why is it doing this? Surely it should increment at the end of every group.
Any information will be gratefully received.
John