Is it compalsory to asssign PC Value in level break Footer?

Lucy

Member
Hi List,
I m confuse that every time we have to assign the PC value in level break Footer if not then what happened?

Thanks in advance

Lucy
Jr Technical Develoeper
E812
 
Hi Lucy,

[ QUOTE ]
I m confuse that every time we have to assign the PC value in level break Footer if not then what happened?

[/ QUOTE ]

PC = Previous BC Column
BC = Current BC Column

On level break footer, BC contains the value of the value of next record, not the last record (processed first in the next Level Break session) and not the last processed in your current Break session.

Regards,

Zoltán
 
It is exactly what Zoltan wrote. As each row is fetched from the database, the BC variables are populated. The level break footer is processed after the first row at the next level is fetched. At that point the BC variables are populated with the values for the next level break value. By using the PC variables, you obtain the values from the previous row, which contain the values for the aggregates in the level break footer.

Years ago, there were no PC variables, and developers had to create logic to save the values from the previous row to be able to print them in a level break footer. The PC variables do it for you automatically.
 
Back
Top