MSIR.0787 Result has incorrect type

From m204wiki
(Redirected from MSIR.0787)
Jump to navigation Jump to search

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=0Sets online return code
RETCODEB=4Sets batch (single user) return code
CLASS=EError class; the message can be suppressed with the X'04' bit setting of the MSGCTL parameter
AUDITERWrites the message with line type ER to the audit trail
COUNTIncrements the error count (ERCNT) parameter
ECHODisplays the line that caused the error

Back to list of messages