HELP!!!
I am trying to build a month date array with the following code...
/********************************************************************/
/* Find Month and build Month Date Array */
/********************************************************************/
/* assign var[1] to beginning of month from start date */
assign ws-week-date [1] = date(month(in_start_date), 1, year(in_start_date))
do sub1 = 2 to 12:
sub2 = sub1 - 1.
if month(ws-week-date [1])+sub2 > 12 then
ws-week-date [sub1] = date(month(ws-week-date [1])+sub2-12, 1, year(ws-week-date [sub2])+1).
else
ws-week-date [sub1] = date(month(ws-week-date [1])+sub2, 1, year(ws-week-date [sub2])).
end.
However I am getting this compile error...
[FONT=r_ansi]Colon followed by white space terminates a statement. (199)
I am currently using version 9.1c on Progress
Can anyone help me with this code, I can't figure out why its not working...
[/FONT]
I am trying to build a month date array with the following code...
/********************************************************************/
/* Find Month and build Month Date Array */
/********************************************************************/
/* assign var[1] to beginning of month from start date */
assign ws-week-date [1] = date(month(in_start_date), 1, year(in_start_date))
do sub1 = 2 to 12:
sub2 = sub1 - 1.
if month(ws-week-date [1])+sub2 > 12 then
ws-week-date [sub1] = date(month(ws-week-date [1])+sub2-12, 1, year(ws-week-date [sub2])+1).
else
ws-week-date [sub1] = date(month(ws-week-date [1])+sub2, 1, year(ws-week-date [sub2])).
end.
However I am getting this compile error...
[FONT=r_ansi]Colon followed by white space terminates a statement. (199)
I am currently using version 9.1c on Progress
Can anyone help me with this code, I can't figure out why its not working...
[/FONT]