MSIR.0732 Invalid context for (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

An object or structure variable was used in an invalid context. One of the most common cases where this error occurs is in an attempt to print the value of an object variable, especially an enumeration, or to use an object variable as a string (again, most common with object variables).

For enumerations, the ToString method should be added to the variable to print it or use it as a string:

%truth is enumeration boolean ... print %truth:toString

For other objects, one presumably really intends to use an object member in the context or perhaps the result of a method like ToString that converts the object contents to a simple datatype.