Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Application Server

Numbers passed as script parameters

  • Last UpdatedJun 21, 2024
  • 1 minute read

Scripts containing the SignedWrite() function experience similar problems interpreting the thousand separator character when a numeric string is passed as a parameter within quotation marks.

Example:

SignedWrite("AO1.PV1","8.456,56","",true,1,null);

The numeric value is enclosed within quotation marks as a string data type and the comma thousand separator character is interpreted as a parameter delimiter. If the computer running a visualization application regional locale is set to Germany, the script incorrectly writes 8.46 to an attribute.

Alternative Solution:

Use a custom property with an analog data type instead of a string.

SignedWrite("AO1.PV1",CP1,"",true,1,null);

where CP1=8.456,56 is set by the user at run time.

TitleResults for “How to create a CRG?”Also Available in