Concat

(Engine-Level Function)

With a small number of exceptions, all VTScada text is stored as phrase keys. The text that you see comes from the language file matching your current language. To view the phrase that matches a key you must use \GetPhrase("KeyName").
For example, an expression in an I/O and Calculations tag that looks like Concat(ShortName, " ", Description) will return text that looks like This Tag 04Q/a+8
To view the text of the description instead of the stored key, you must write \GetPhrase(Description)
See: Multilingual Expressions

Description: Returns the text value that is the concatenation of all the text parameters.
Returns: Text
Usage: Script or steady state.
Function Groups: String and Buffer
Related to: GetParmPhrase | StrCmp | StrICmp | StrLen | GetPhrase
Format: Concat(String1, String2[, String3, ... ])
Parameters:  
String1, String2, String3
A minimum of two parameters are required  May be any expressions that give the text values to add to the resulting string.
Comments:

This function takes all of the characters of the first parameter and appends all of the characters of the second parameter to the end of this string. It will then take all of the characters of the next parameter and append them to the result. This will continue until there are no more parameters.

The result cannot exceed 2,147,483,647 characters. INVALID will be returned instead.

Because the text strings are delimited by quotation marks, to include a set of quotation marks as part of the resulting string, you must use two sets of quotation marks (see example).

 

For multilingual user interfaces, you are encouraged to use \GetParmPhrase rather than Concat.

Example:

  ZText(10, 10, Concat("The maximum is ", MaxValue,
                       " and the minimum is ", MinValue),
        2, 0);

This statement displays the 2 strings and 2 values as a single line of (white) text in the window.

  ZText(10, 10, Concat("""Hello"", said the ", Animal), 12, 0);
  ZText(10, 10, Concat("""", "Hello", """", ", said the ", Animal), 12, 0); 

 These two statements will display the exact same line of text on the screen. If Animal is the string "cat", the text that they display will be:

"Hello", said the cat