Returns a TRUE value if the current iteration of a DO, FOR EACH, or REPEAT . . . BREAK block is the last iteration for a particular value of a break group.
LAST-OF ( break-group )This procedure uses LAST-OF to display a single line of information on each Item.CatPage group in the Item file, without displaying any individual item data. It produces a report that shows the aggregate value OnHand for each catalog page.
FOR EACH Item NO-LOCK BREAK BY Item.CatPage:ACCUMULATE Item.OnHand * Item.Price (TOTAL BY Item.CatPage).IF LAST-OF(Item.CatPage) THENDISPLAY Item.CatPage (ACCUM TOTAL BY Item.CatPageItem.OnHand * Item.Price) LABEL "Value-oh".END.
© 2012 Progress Software Corporation and/or its subsidiaries or affiliates. |