fastreport分组脚本问题

fastreport分组脚本问题 Delphi / Windows SDK/API
http://www.delphi2007.net/DelphiBase/html/delphi_20061205174746279.html
 
   
  现有一数据表如下:  
  a1         大连     234  
  a2         旅顺     567  
  a2         北京     213  
  a3         天津     987  
  我想分组为如下表:  
  -------------  
    大连     234  
  ------------  
        a2  
  -------------  
    旅顺     567  
    北京     213  
  ----------------  
              小计     780  
  ----------------  
    天津     987  
  ----------------  
   
  如果没有分组头,脚本还是比较好写的,在主数据项中写脚本即可  
      if   [LINE#]>1   then    
      begin  
          GroupFooter.Visible:=True;  
      end   else    
      begin  
          GroupFooter.Visible:=False;  
      end;        
  如果有分组头,就比较难下手了。  
  为何运行出错,提示出错']'expected  
     
   
   
   
   
   
   
       
 

up

up

up

up

posted on 2009-04-22 10:51  delphi2007  阅读(498)  评论(0编辑  收藏  举报