LocalizeExpression Function
- Mise à jour2025-07-21
- Temps de lecture : 1 minute(s)
LocalizeExpression Function
Syntax
String LocalizeExpression(String expressionString, Number decimalPointOption = 1)
Return Value
A string containing the localized expression.
Purpose
This function converts an expression string to conform to the localization settings for the computer. Call this function to localize an expression before you display it. The function replaces the periods that represent decimal points in the expression with the localized decimal point character. If the localized decimal point character is the comma character, the function also replaces commas that represent argument or expression separators with semicolons. The function does not change periods used as property field separators or any characters inside string constants.
Parameters
expressionString as String
The unlocalized expression string to convert.
decimalPointOption as Number
An optional number that specifies how the function determines which character is the localized decimal point it uses to localize the expression. The valid values are: 1 - (default) Use the Station Options localization preferences to determine whether to use the operating system setting. 2 - Use the operating system setting. 3 - Use the period character. 4 - Use the comma character.