InitDateCode
procedure InitDateCode (const Key : TKey; StartDate, EndDate : TDateTime; var Code : TCode);

TurboPack OnGuard FMX

InitDateCode

procedure InitDateCode (const Key : TKey; StartDate, EndDate : TDateTime; var Code : TCode);

Navigation:  »No topics above this level«

InitDateCode

procedure InitDateCode (const Key : TKey; StartDate, EndDate : TDateTime; var Code : TCode);

Return to chapter overview

_bm1 InitDateCode creates and initializes a date code using Key, StartDate, and EndDate.

The resulting code is valid for dates between StartDate and  EndDate inclusive.

This routine is defined in the OnGuard unit. (as of 1.15 this routine has been moved to the OgUtil unit)

 

With version 1.15 the StartDate is checked.

An exception is generated if the StartDate is less than or equal to the BaseDate or if it is greater than 2175-Jun-6.