Sign in Join
FPDoc Onlineexperiment

InvalidDateMonthWeekError procedure

In unit DateUtils

Raise an EConvertError exception when a Year,Month,WeekOfMonth,DayofWeek is invalid.

Declaration

pascal
procedure InvalidDateMonthWeekError(const AYear: Word; 
 const AMonth: Word; 
 const AWeekOfMonth: Word; 
 const ADayOfWeek: Word)

Arguments

AYear

Year.

AMonth

Month of the year.

AWeekOfMonth

Week of the month.

ADayOfWeek

Day of the week.

Description

InvalidDateMonthWeekError raises an EConvertError exception and formats the error message with an appropriate description made up from the parts AYear, Amonth, AWeekOfMonth and ADayOfWeek.

Normally this function should not be needed, the conversion routines call it when they have received invalid arguments.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.