Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

COBCH1712 <object> has no visible instance method 'value' with 0 parameters errors seen after upgrading to Visual COBOL 2.2 Update 1

COBCH1712 <object> has no visible instance method 'value' with 0 parameters errors seen after upgrading to Visual COBOL 2.2 Update 1

Problem:


After upgrading Visual COBOL to Version 2.2 Update 1 the following error may be encountered when using Managed Code Projects where code does not use specific properties of a method:

COBCH1712 <object type> has no visible instance method '<value>' with 0 parameters.



Resolution:

The release notes of Visual COBOL 2.2 Update 1 state:

In member reference in managed COBOL syntax, parentheses can only be used when referencing methods.

Parentheses can no longer be used when referencing fields or properties, as this will produce a syntax error.

For example:

     set intLength to testString::Length()

must change to:

     set intLength to testString::Length

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2014-05-16 13:28
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.