MSIR.0787 Result has incorrect type: Difference between revisions
Jump to navigation
Jump to search
(Automatically generated page update) |
(Automatically generated page update) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
A < | A <var>Return</var> statement was coded in a <var>Function</var> or the <var>Get</var> method of a <var>Property</var>, but the datatype of the expression that follows the <var>Return</var> is incorrect. This can occur in these situations: | ||
<ul> <li>The method has an < | <ul> | ||
<li>The method has an <var>Object</var> datatype and the <var>Return</var> value doesn't. | |||
<li>The <var>Return</var> has an object datatype and the method doesn't. | |||
<li>They both have object datatypes, but the object classes are different. | |||
</ul> | |||
[[Category: | Simple datatypes are automatically converted if the <var>Return</var> datatype doesn't match the method datatype. Correct either the <var>Return</var> statement, or the <var>Function</var> or <var>Property</var> definition. | ||
{{Template:MSIR.0787 footer}} | |||
[[Category:MSIR.0600 - MSIR.0799]] |
Latest revision as of 23:34, 3 March 2017
A Return statement was coded in a Function or the Get method of a Property, but the datatype of the expression that follows the Return is incorrect. This can occur in these situations:
- The method has an Object datatype and the Return value doesn't.
- The Return has an object datatype and the method doesn't.
- They both have object datatypes, but the object classes are different.
Simple datatypes are automatically converted if the Return datatype doesn't match the method datatype. Correct either the Return statement, or the Function or Property definition.
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 |