Locale Settings Example Code

Example that explains how to use locale settings.

Currency: locale-dependent currency representation


Download the example: Currency.zip

Download some additional files required by the example:CommonFramework.zip

View the source code: browse. View the additional files: browse.


This example shows locale-dependent currency representation. The way currency values and symbols are printed depends on the locale's settings.

Class summary

Examples of APIs

  • TLocale - Sets and gets the system's locale settings.

  • TCurrencySymbol - Gets a copy of the currency symbol(s) in use by the current locale.

Security issues

The example requires no specific capabilities in order to run - and does not demonstrate any security issues.