Back to Devexpress

cxIntegerToDays(Integer) Method

vcl-cxschedulerutils-dot-cxintegertodays-x28-2822a90a-x29.md

latest1.3 KB
Original Source

cxIntegerToDays(Integer) Method

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

Declaration

delphi
function cxIntegerToDays(AValue: Integer): TDays;

Parameters

NameType
AValueInteger

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

cxSchedulerUtils Unit