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

cxDaysToInteger(TDays) Method

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

#Declaration

Delphi
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