Skip to main content

TcxSchedulerDateTimeHelper.IncMonth(Word,Word,Word,Integer) Method

Increments the AMonth month by the number of months specified in the ANumberOfMonths parameter.

Declaration

class procedure IncMonth(var AYear: Word; var AMonth: Word; var ADay: Word; ANumberOfMonths: Integer = 1);

Parameters

Name Type
AYear Word
AMonth Word
ADay Word
ANumberOfMonths Integer

Remarks

The AYear parameter specifies the year the AMonth month belongs to;

The AMonth parameter specifies the month to be incremented;

The ADay parameter specifies the day in the AMonth month. If the value of the ADay parameter is greater than the last day in the resulting month then the ADay day will be set to the last day of the resulting month;

The ANumberOfMonths parameter specifies the number of months the AMonth month is incremented by. If the ANumberOfMonths parameter is not specified then the AMonth month will be incremented by one month.

See Also