Deftype statements include DefInt, DefDbl, DefCur, and so on. This error has the following causes and solutions:
Move the Deftype statement to precede all variable declarations.
Move the Deftype statement to module level, preceding all variable declarations.
For additional information, select the item in question and press F1 (in Windows) or HELP (on the Macintosh).