MSIR.0732 Invalid context for (type): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
(Automatically generated page update)
Line 1: Line 1:
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).<pre> For enumerations, the toString method should be added to the variable to print it or use it as a string:<pre> %truth is enumeration boolean ... print %truth:toString</pre> 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.
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).<pre> For enumerations, the toString method should be added to the variable to print it or use it as a string:<pre> %truth is enumeration boolean ... print %truth:toString</pre> 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.


[[Category:Sirius Mods Messages]]
[[Category:Sirius Mods messages]]

Revision as of 17:59, 19 April 2013

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:<pre> %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.