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

From m204wiki
Jump to navigation Jump to search
(Automatically generated page update)
mNo edit summary
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 &#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.
A variable was declared as 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. 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:
 
<p class="code">  
class a  
end class  
 
class b  
end class  
 
class a ...  
public and private variables  
end class  
 
class b ...  
public and private variables  
end class
</p>  
 
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:25, 23 April 2014

A variable was declared as 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:

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.