AVERAGE
COUNTMAXIMUMMINIMUMTOTALSUB-AVERAGESUB-COUNTSUB-MAXIMUMSUB-MINIMUMSUB-TOTALaggr-label BY break-groupLABELBY break-groupLABEL aggr-labelSpecifies a label for the aggregate value. aggr-label is a standard ABL string and can use a string attribute. The string can be translated by Translation Manager II. You can specify a maximum length attribute that is greater than the length of the longest label translation.
FOR EACH Customer NO-LOCK BREAK BY Customer.Country:DISPLAY Customer.Name Customer.Country Customer.Balance(SUB-TOTAL BY Customer.country).
END.
DEFINE VARIABLE prntr AS LOGICAL NO-UNDO.FOR EACH Item NO-LOCK:IF prntr THENDISPLAY Item.ItemName Item.Price(COUNT) WITH FRAME pr.END.
FOR EACH Customer NO-LOCK:DISPLAY Customer.Name Customer.CreditLimit(AVERAGE LABEL "Avg. Credit Limit"MAXIMUM LABEL "Max. Credit Limit"TOTAL) WITH FRAME frame1 12 DOWN.END.
When you use aggregate phrases to accumulate values within shared frames, you must include the ACCUM option in the Frame phrase. See the Frame phrase reference entry for more information.
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates. |