在网上找了下资料,http://www.cnblogs.com/laughterwym/archive/2007/02/17/651826.aspx
跟我要做的是一样的,但是上面说的代码好象有问题,
formula_2
whileprintingrecords;
global numbervar BFtotal;
global numbervar RStotal;
global numbervar BTtotal;
BFtotal:=BFtotal+{VIEW1.保费};
RStotal:=RStotal+1; BTtotal:=BTtotal+{VIEW1.补贴};