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

AVEVA™ InTouch HMI

StringChar() Function

  • Last UpdatedFeb 21, 2017
  • 1 minute read

Returns a single character corresponding to a specified ASCII code.

Syntax

result = StringChar (ASCIICode)

Parameters

ASCIICode

A literal number, numeric tagname, or numeric expression in the range of 0 to 255.

Remarks

This function is very useful for passing control characters to external devices (such as printers or modems) or double quotes to SQL queries.

Example(s)

StringChar(65) returns "A".

This script returns "Hello World" enclosed by double quotes:

StringChar(34)+"Hello World"+StringChar(34)

This script returns "Hello World" where both words are separated by a carriage return and a line feed:

"Hello"+StringChar(13)+StringChar(10)+"World"

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