LAST function
- Last Updated: January 18, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
Returns a TRUE value if the current iteration of a DO, FOR EACH, or REPEAT . . . BREAK block is the last iteration of that block.
Syntax
|
- break-group
- The name of a field or expression you named in the block header with the BREAK BY option.
Example
The first FOR EACH block produces a list of the on hand values of the items in inventory. It also automatically generates a total of these on hand values.
The second FOR EACH block does exactly the same thing, except it does not generate the total. Instead, the procedure uses the ACCUMULATE statement and the LAST function. Thus, you can substitute your own labels and formats for the grand total.
r-last.p
|