MSIR.0787 Result has incorrect type

From m204wiki
Revision as of 16:05, 13 August 2015 by JALWiccan (talk | contribs) (Automatically generated page update)
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.