STRING

A STRING type variable can contain any string of characters. The size entry in the declaration determines how much memory space should be reserved for the variable. It refers to the number of characters in the string and can be placed in parentheses or square brackets.

Example of a string declaration with 35 characters:

str:STRING(35):='This is a String';

Type

Memory use

STRING

  • If no size specification is given, the default size of 80 characters will be used: Memory use [Bytes] = 80 + 1 Byte for string terminated Null character;
  • If string size specification is given: Memory use [Bytes] = String Size + 1 Byte for string terminated Null character);