Loading...
 

CX_SYSTEM_OBJECT::GetAllLocales

CX_SYSTEM_OBJECT::GetAllLocales from DLL version 4.5.2.173619

Description:

This method loads the complete locale information and makes it available as a CX_MASTER_LOCALE object.

Caution: The CX_MASTER_LOCALE object owns the sub-locales it contains and deletes them as soon as it is deleted. This means that the CX_MASTER_LOCALE must be kept in a variable to protect the locale objects from garbage collection. Holding only a sub-locale does not help here!

Code example:
Var(masterLocale) SystemObject Call(GetAllLocales) -> masterLocale // remember master locale in a variable to protect all locales from GarbageCollection masterLocale FillWindow(win)   Window(win, . . .) {   ObjectTree(CX_MASTER_LOCALE::locales, 7, 7, 0, 0) [     INITIALIZE: [ Path(CX_LOCALE::sublocales) NODE ] SetFormat                 [ Path(CX_LOCALE::call(LocaleSymbol)) ] SetFormat                 [ Path(CX_LOCALE::name) ] SetFormat                 [ Path(CX_LOCALE::Holidays()) NODE ] SetFormat                 [ Path(CX_HOLIDAY::name) ] SetFormat ] }

Stack
Stack Position Object type Brief description
Stack(In) Top OBJECT CX_SYSTEM_OBJECT
Stack(Out) Top OBJECT CX_MASTER_LOCALE
Function call: Call(GetAllLocales)