Previous Topic Next topic Print topic


COBCH1601 Property cannot have parameters

The Procedure Division header within a property-id has parameters specified.

The Procedure Division header in a property-id must not have any parameters.

class-id myClass.
property-id myProp1 string.
procedure division using myField as string. *> this is incorrect
    getter.
    set property-value to "Micro Focus"
end property.
   
property-id myProp2 string.
procedure division.	*> this is correct
    getter.
    set property-value to "Visual COBOL"
end property.
end class.
Previous Topic Next topic Print topic