Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
NumberVar Array CountDays;
Redim CountDays [7];
Local DateVar CheckDate := {?StartDate};
Local NumberVar i;
LOcal StringVar Display;
While CheckDate <> {?EndDate} + 1
Do
(
CountDays [DayOfWeek (CheckDate, CrMonday )] := CountDays [DayOfWeek (CheckDate, CrMonday )] + 1;
CheckDate := CheckDate + 1
);
For i := 1 to 7
Do
Display := Display & WeekdayName (i, False, crMonday) & " = " & cstr(CountDays[i],0,"") & " day(s)" & chr(13);
"Between " & {?StartDate} & " and " & {?EndDate} & " there are :- " & chr(13) & Display