Compiler Error C0062
Message: '<variable name>' is no structured variable.
Possible error cause: A variable that is not a structure variable is treated like a structure variable.
Error correction: Make sure that the variable is a structure variable.
Example of the error:
PROGRAM MAIN
VAR
pt : PUNKT;
i : INT;
END_VAR
i.x := 1024;
TYPE Punkt :
STRUCT
x : REAL;
y : REAL;
END_STRUCT
END_TYPEMessage:
- C0018: 'i.x' is no valid assignment target
- C0062: 'Variable' is no structure variable
Error correction:
pt.x := 1024;