Sign in Join
FPDoc Onlineexperiment

InvalidDateWeekError procedure

In unit DateUtils

Raise an EConvertError with an invalid Year, WeekOfyear and DayOfWeek specification.

Declaration

pascal
procedure InvalidDateWeekError(const AYear: Word; 
 const AWeekOfYear: Word; 
 const ADayOfWeek: Word)

Arguments

AYear

The year.

AWeekOfYear

The week.

ADayOfWeek

The day of the week.

Description

InvalidDateWeekError raises an EConvertError exception and formats the error message with an appropriate description made up from the parts AYear, AWeek, 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.