Previous Topic Next topic Print topic


COBCH1575 SELF and SUPER cannot be receiving items

Incorrect syntax has been used.

The following example shows correct and an incorrect usage of the self:: syntax:

class-id myClass.
  01 field-a string.
  method-id myMethod.
    set self to "Micro Focus"			*> this is incorrect
    set self::field-a to "Micro Focus"		*> this is correct	
  end method.
end class.

Refer to Managed COBOL language reference for expected syntax.

Previous Topic Next topic Print topic