MSIR.0775 (what) required for (methtype): Difference between revisions
Jump to navigation
Jump to search
(Automatically generated page update) |
(Automatically generated page update) |
||
(One intermediate revision by the same user not shown) | |||
Line 6: | Line 6: | ||
The keyword <var>is</var> is not required in indicating the property or function datatype. You add the function or property datatype to the declaration. | The keyword <var>is</var> is not required in indicating the property or function datatype. You add the function or property datatype to the declaration. | ||
{{Template:MSIR.0775 footer}} | |||
[[Category:MSIR.0600 - MSIR.0799]] |
Latest revision as of 23:34, 3 March 2017
A function or property method declaration in a class was not followed by a datatype. Since a function returns something of a specific datatype, and a property can be set to or returns something of a specific datatype, that datatype must be indicated in the function or property declaration.
In the following property declaration, the datatype for the property is indicated by the Is clause at the end as Float:
property temperatureCelsius is float
The keyword is is not required in indicating the property or function datatype. You add the function or property datatype to the declaration.
Message attributes:
RETCODEO=0 | Sets online return code |
---|---|
RETCODEB=4 | Sets batch (single user) return code |
CLASS=E | Error class; the message can be suppressed with the X'04' bit setting of the MSGCTL parameter |
AUDITER | Writes the message with line type ER to the audit trail |
COUNT | Increments the error count (ERCNT) parameter |
ECHO | Displays the line that caused the error |