DelocalizeExpression Function
- Mise à jour2025-07-21
- Temps de lecture : 1 minute(s)
DelocalizeExpression Function
Syntax
String DelocalizeExpression(String localizedExpressionString, Number decimalPointOption = 1)
Return Value
A string containing the delocalized expression.
Purpose
This function converts a localized expression string to a standard form that is suitable for evaluation. TestStand requires expressions that it evaluates through the Evaluate expression function or the Evaluate API method to be in a standard non-localized form so that the result of the evaluation does not depend on the localization settings of your computer. Call this function to delocalize expressions you obtain from user input. The function replaces the localized decimal point characters that represent decimal points in the expression with the period character. If the localized decimal point character is the comma character, the function also replaces semicolons that represent argument separators or expression separators with commas. The function does not change characters inside string constants.
Parameters
localizedExpressionString as String
The localized expression string to convert.
decimalPointOption as Number
An optional number that specifies how the function determines which character it assumes that the localized expression uses for the localized decimal point. 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