Contents Topics Index  <<  >>

DecreaseMonth func


Unit

WallCalendar

Declaration

Function DecreaseMonth ( var TheMonth : TCalendarMonth  ;
var TheYear : integer ) : boolean ;

Description

The DecreaseMonth procedure will decrease the TheMonth parameter by one. If the passed-in month is January, the TheYear property will also be decreased. If the passed-in year is invalid, or if decreasing the TheYear property violates the MinYear bounds, the function will return a false result, otherwise the result will be true.

See also: IncreaseMonth