Deftype statements must precede declarations
Within the Declarations section of a form or module, a Deftype statement must occur on a line before variables are defined.