── STRING ─────────────────────────────────────────────────────────────► ┌◄──────────────────────────── , ────────────────────────────┐ ►─┴─<string identifier>─┬────────────────────────────────────┬─┴───────┤ └─ := ──<string constant expression>─┘
Explanation
A string declaration declares a variable of type STRING. The default initial value of a string variable is a null string ("").
The values of a string variable are saved across a halt/load.
If the := string constant expression clause is specified for a string identifier, this string constant expression is used as the initial value for that string identifier.
Example
The following example illustrates the declaration of string variables:
STRING STR1, STR2; STRING STR3 := "STRVAL";