MSIR.0725 (type) (name) not defined: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
(Automatically generated page update)
Line 1: Line 1:
A variable was declared as either a Class or Structure but that class or structure name was not defined. Either the name of the structure or class was misspelled, or the declaration of the structure or class appeared after the variable declaration it must appear before. One slightly tricky case is if a class called, say, A contains a variable of class B and class B contains a variable of class A.<pre> In such a case, it is possible to declare one or the other class (or both) first with an empty Class block and then with a Class block that contains the variable declarations:<pre> class a end class class b end class class a ... public and private variables end class class b ... public and private variables end class</pre> The empty Class block will be sufficient to prevent this error message because it lets <var class="product">Model 204</var> know about the existence of the class.
A variable was declared as either a Class or Structure but that class or structure name was not defined. Either the name of the structure or class was misspelled, or the declaration of the structure or class appeared after the variable declaration &#x2014; it must appear before. One slightly tricky case is if a class called, say, A contains a variable of class B and class B contains a variable of class A.<pre> In such a case, it is possible to declare one or the other class (or both) first with an empty Class block and then with a Class block that contains the variable declarations:<pre> class a end class class b end class class a ... public and private variables end class class b ... public and private variables end class</pre> The empty Class block will be sufficient to prevent this error message because it lets <var class="product">Model 204</var> know about the existence of the class.


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

Revision as of 17:59, 19 April 2013

A variable was declared as either a Class or Structure but that class or structure name was not defined. Either the name of the structure or class was misspelled, or the declaration of the structure or class appeared after the variable declaration — it must appear before. One slightly tricky case is if a class called, say, A contains a variable of class B and class B contains a variable of class A.

 In such a case, it is possible to declare one or the other class (or both) first with an empty Class block and then with a Class block that contains the variable declarations:<pre> class a end class class b end class class a ... public and private variables end class class b ... public and private variables end class

The empty Class block will be sufficient to prevent this error message because it lets Model 204 know about the existence of the class.