DelocalizeExpression Method

TestStand 2019 Help

Edition Date: May 2019

Part Number: 370052AA-01

»View Product Info
Download Help (Windows Only)

Syntax

Engine.DelocalizeExpression ( localizedExpressionString, decimalPointOption)

Return Value

String

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

Engine.GetLocalizedDecimalPoint

Engine.LocalizeExpression

PropertyObject.EvaluateEx

StationOptions.UseLocalizedDecimalPoint

WAS THIS ARTICLE HELPFUL?

Not Helpful