Skip to main content

cxIntegerToDays(Integer) Method

Converts the specified integer value into a set of days of the week.

Declaration

function cxIntegerToDays(AValue: Integer): TDays;

Parameters

Name Type
AValue Integer

Returns

Type
TDays

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 cxIntegerToDays function checks which of the first seven bits are present in an accepted integer value, starting from the least significant bit, and adds the corresponding TDay enumeration members into the resulting TDays value.

See Also