I have this simple and little formula that counts the days for each year.
What I'd like to know is how can I print the last value of each yearly count?
Code: Select all
if Year(date) <> Year(date) then begin
stYear = true;
count = 0;
if stYear then
count = count + 1;
If I request to print the count variable, all days within the year will be printed, but what I want is to print only the last count for the last day of each year.