Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

cxIntegerToDays(Integer) Method

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

#Declaration

Delphi
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