funtion of Accumulate

parimala

New Member
******************
open edge 10.2b
win 7 enterprise
******************

I don't know how accumulate works and where i can use it.

DEFINE VARIABLE i AS INTEGER INITIAL 0 NO-UNDO.
FOR EACH invoice BREAK BY custnum:
ASSIGN
i = ACCUMULATE amount ( SUB-TOTAL BY custnum ).
End.

Iam unable to store the value in a variable.
Is this wrong?

otherwise how can i store (sub-total amount by custnum)
 
Top