hi, Can anyone help. i have a problem about month function. this is the scenario. i want to generate a report every 29 of month, and it will last in 5 years. how do i get the succeeding month? i try this code.. for 1 year only.
DEFINE VARIABLE reportdate AS DATE NO-UNDO.
DEFINE VARIABLE resultdate AS DATE NO-UNDO.
DEFINE VARIABLE ctr AS INTEGER NO-UNDO.
reportdate = 1/29/11.
DO ctr = 1 TO 12:
reportdate = reportdate + 30.
MESSAGE reportdate
VIEW-AS ALERT-BOX INFO BUTTONS OK.
END.
i need the output like this..
01/29/11 03/01/11 03/29/11 04/29/11 05/29/11 06/29/11 07/29/11 08/29/11 09/29/11 10/29/11 11/29/11 12/29/11
DEFINE VARIABLE reportdate AS DATE NO-UNDO.
DEFINE VARIABLE resultdate AS DATE NO-UNDO.
DEFINE VARIABLE ctr AS INTEGER NO-UNDO.
reportdate = 1/29/11.
DO ctr = 1 TO 12:
reportdate = reportdate + 30.
MESSAGE reportdate
VIEW-AS ALERT-BOX INFO BUTTONS OK.
END.
i need the output like this..
01/29/11 03/01/11 03/29/11 04/29/11 05/29/11 06/29/11 07/29/11 08/29/11 09/29/11 10/29/11 11/29/11 12/29/11