[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference ilbbak::ibi_focus

Title:FOCUS, from INFORMATION BUILDERS
Moderator:ZAYIUS::BROUILLETTE
Created:Thu Feb 19 1987
Last Modified:Mon May 05 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:615
Total number of notes:1779

130.0. "reinitializing problem" by TOMCAT::METCALF () Fri Sep 16 1988 13:11




    	I am having a problem reinitializing a DEFINEd field to zero
    	on a sort break.  The DEFINEd field is a running total for
    	each line of the report.  I have tried to COMPUTE the running
    	total on the sort break, but it still keeps accumulating 
    	throughout the entire report.  Is there any way to reinitialize
    	fields on sort breaks?

    	Thanks for any help anyone can offer.


    Linda Metcalf
T.RTitleUserPersonal
Name
DateLines
130.1reinit suggestionsFDCV01::MADDENFri Sep 23 1988 18:407
    Without seeing the code I'm not exactly sure what you are trying
    to do;  If its just subtotals you need then ofcause
              ON sortfield SUBFOOT "<ST.field"         
    however it sounds more like you need the LAST function in a COMPUTE
          COMPUTE field = IF LAST sortfield NE sortfield THEN 0 ELSE
                          whatever......   ; 
    Every time the sortfield changes value the 'field' is set to 0