cxDaysToInteger(TDays) Method
Converts the specified set of days of the week into a single integer value.
Declaration
function cxDaysToInteger(ADay: TDays): Integer;
Parameters
Name | Type |
---|---|
ADay | TDays |
Returns
Type |
---|
Integer |
Remarks
Different event resources can use different sets of workdays specified via a resource’s WorkDays property. The cxDaysToInteger and cxIntegerToDays global functions allow data-aware event persistence managers to store resource workday sets in a dedicated TIntegerField in the underlying dataset.
The cxDaysToInteger function interprets TDay enumeration values as the seven bits in the result integer value, starting from the least significant bit.
See Also