COBCH1757 Reference modified object (string or array) cannot be a receiving item

The program specifies a reference-modified string object as a receiving item. This is not allowed.

Resolution:

Modify the code such that the reference-modified object is no longer a receiving item; then recompile.

Example:

In the following example, the S1 string receives an array value.

       class-id a.
       method-id main static.
           declare s1 as string = "ABCDEFGHIJ"
           *>move "XYZ" to s1[3:3]
           declare bytearray1 = table of byte (1 2 3 4 5 6 7 8)
           declare bytearray2 = table of byte (11 22 33)
           move bytearray2 to bytearray1[4:3]
           perform varying i as byte through bytearray1
               display i
           end-perform
       end method.
       end class.