Left Side of the := Statement does not Allow Assignment

Description

The code contains an expression where you try to assign a value to an element that does not allow for assignment.

Troubleshooting Tips

Change the expression so that only the elements that allow for assignment were assigned some values.

Example

Class TestClass: Object
    Public Sub Test;
    Begin
        
    End Sub Test;
End Class TestClass;

Sub Main;
Var
    Obj: TestClass;
Begin
    Obj := New TestClass.Create;
    Obj.Test := 1;
End Sub Main;

When the specified code is compiled, the following error is displayed: Left side of the := statement does not allow for assignment. To resolve the error, delete assignment to the Test procedure from the code or declare a writable property as the Test procedure.

See also:

Compiler Messages