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

AVEVA™ InTouch HMI

StringLeft() Function

  • Last UpdatedFeb 21, 2017
  • 1 minute read

Returns a specified number of characters from the beginning of a string.

Syntax

result = StringLeft (string, length)

Parameters

string

A literal text, message tagname, or string expression.

length

The numbers of characters to return. A literal number, analog tagname, or numeric expression.

Example(s)

StringLeft("Hello World",5) returns "Hello".

StringLeft("Hello World",20) returns "Hello World".

StringLeft("Hello World",0) returns "Hello World".

Note: If you pass 0 as length to the StringLeft() function, it returns the entire string.

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