Loading...
 

CX_LOCALE::WorkingDays

CX_LOCALE::WorkingDays

Description:

This function returns the working days of the country.

128 = Monday,
64 = Tuesday,
32 = Wednesday,
16 = Thursday,
8 = Friday,
4 = Saturday,
2 = Sunday,
1 = undefined,
( 0 = working days of the superior country. Appears only as output if none of the parent locales has defined working days. )

Note:
for the objects class CX_LOCALE and CX_STATE_LOCALE the function returns the working days of the locale. If no working days are defined, then the working days of the parent country. If no parent country exists - error message "Error in a base class. ("Error in a base-class")

for the objects class CX_COUNTRY_LOCALE, the function returns the working days of the superior country if a superior country exists. If no higher-level country exists for this object, the function returns the working days for this country.

Code example:

SystemObject Call(GetLocale)
Get(upperLocale) Dup
if { Call(WorkingDays)}
else { "locale not set" Attention }
............................
SystemObject Call(GetCountries)
0 Swap
GetElement Call(WorkingDays)

Stack
Stack Position Object type Brief description
Stack(IN) Top CX_LOCALE, CX_STATE_LOCALE,
or CX_COUNTRY_LOCALE
the locale
Stack(OUT) Top INTEGER Working days
Function call: Call(WorkingDays)