LPeriodStartDate[1] := 010190D; LPeriodStartDate[4] := CALCDATE('CM-1M',PAgeingDate); LPeriodStartDate[5] := PAgeingDate; FOR i := 3 DOWNTO 2 DO LPeriodStartDate[i] := CALCDATE('-1M',LPeriodStartDate[i+1]-1); FOR i := 2 TO 4 DO LPeriodStartDate[i] := CALCDATE('CM',LPeriodStartDate[i]);
Comments
Should this be an End Date variable like LPeriodEndDate:
For code like this look in:
Report 120 "Aged Accounts Receivable" in the function CalcDates, this sets start and ending dates!
HTH
David
Mobile: +44(0)7854 842801
Email: david.cox@adeptris.com
Twitter: https://twitter.com/Adeptris
Website: http://www.adeptris.com
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
but what is he trying to do here?