# Re: 请问crystal report 可否判断aftre group,before group?

Posted by hans on October 29, 1999 at 17:56:04:

In Reply to: 请问crystal report 可否判断aftre group,before group? posted by may on October 29, 1999 at 15:53:39:

在Formula公式编辑内
中间方块Function 倒数几个事件可使用
1.BeforeReadingRecords
2.WhileReadingRecords
3.WhilePrintingRecords

看你自己需要自行在Formula内写

它的写法类似 Script
范例:
WhilePrintingRecords;
NumberVar prePage;
NUMBERVAR PREC;
if PageNumber <> prePage then
(
prePage := PageNumber;
Prec := 1;

)
else
(PREC:=PREC+1;);

Follow Ups: