I'm trying to increase the date in Delphi by one day per button click. I'm using the incday function. This is my code:
Procedure ButtonClick
begin
IncDay(currdate,1);
ShowMessage(DateTimeToStr(currdate));
end;
currdate is set to "date" in another procedure.
When the procedure ButtonClick is run, the date remains as the value of the system date.