Engine.DelocalizeExpression
- Mise à jour2025-07-21
- Temps de lecture : 1 minute(s)
Engine.DelocalizeExpression
Syntax
Engine.DelocalizeExpression( localizedExpressionString, decimalPointOption)
Return Value
A string containing the delocalized expression.
Purpose
Converts a localized expression string to a standard form suitable for evaluation.
Remarks
TestStand requires expressions it evaluates through the expression function Evaluate or the PropertyObject.EvaluateEx method to be in a standard, non-localized form so the result of the evaluation does not depend on the localization settings of the computer.
Call this method to delocalize expressions you obtain from user input. The method 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 method also replaces semicolons that represent argument separators or expression separators with commas. The method does not change characters inside string constants.
Parameters
localizedExpressionString As String
[In] Specifies the localized expression string to convert.
decimalPointOption As DecimalPointLocalizationOptions
[In] Pass a constant that specifies how the method determines which character the localized expression uses for the localized decimal point.
See Also
DecimalPointLocalizationOptions