LOCALE
The LOCALE function returns the locale of the logged on user as an integer value. This function is useful when working with different international versions of ClearSCADA, for example, you can use LOCALE to change the text shown in a text box on a Mimic according to the LOCALE of the logged on user.
Function Name |
LOCALE |
Description |
Returns the locale of the currently logged on user as an integer value. |
Arguments |
LOCALE() |
Returns |
INTEGER The INTEGER returned represents the locale of the currently logged on user. The locale numbers are available on-line from www.microsoft.com (search for the term 'Locale ID' or 'LCID Chart'. |
Example:
In the following example, the LOCALE function is used with an IIF function so that a Mimic is displayed on a client with a UK locale (locale number 2057
), a text box displays 'SEUK Website'
and if it is displayed on a client with any other locale, the text box shows 'SEUS Website'
. The expression is used on the value property for the text box.
IIF (LOCALE () =2057, 'SEUK Website', 'SEUS Website')