MSIR.0725 (type) (name) not defined

From m204wiki
Revision as of 15:01, 9 November 2010 by 198.242.244.47 (talk) (Created page with "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 declarat...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.