Skip to main content

Compiler Error C0027

Message: size of string expected after '('

Possible error cause: The length of the string is not specified.

Error correction: Specify a string length between the parentheses.

Example 329. Example of the error:
PROGRAM PLC_PRG
VAR
     str : STRING();
END_VAR

Message:

C0027: Size of string expected after '('

C0006: ';' :=, REF=, ( or [' expected instead of ')'

Error correction:

str : STRING(100);