Appendix: Built-in Scripting Language String functions These functions are used to manipulate text strings or convert them into numeric values. Asc2Str This function converts one or more Unicode character codes to a string. Syntax Asc2Str( numChar1 , numChar2 , … , numCharN ) numChar (1-N) A Unicode character code (in decimal). Returned value Returns a string comprising the converted codes. Notes Although the name of this function implies it only supports ASCII characters, it is in fact a legacy of previous versions of the software. The current version supports the full Unicode character set.
Examples CharToValue This function converts a string to Unicode character codes and then stores those values in an integer array. Syntax CharToValue(" tagString "," tagArray ") tagString The name of the string tag, whose value will be converted. Note: The tag name must be enclosed in quotes, as shown in the syntax diagram, or else the project will try to get the value of the named tag. tagArray The name of the integer array that will receive the converted values. If no array index is specfied, then the default is 0. Note: The tag name must be enclosed in quotes, as shown in the syntax diagram, or else the project will try to get the value of the named tag.
InduSoft Web Studio Page 463 Function Group Execution Windows Embedded Thin Client Asc2Str String Synchronous Supported Supported Supported Tag Name Expression Tag Asc2Str( 65 ) // Returned value = "A" Tag Asc2Str( 65, 66, 67 ) // Returned value = "ABC" Tag Asc2Str( Array[0], Array[1], Array[2] ) // Returned value = "ABC" Function Group Execution Windows Embedded Thin Client CharToValue String Synchronous Supported Supported Supported