Illegal exit from DEF* (ERR=245) A multi-line DEF* contains a branch to an END, SUBEND or FUNCTIONEND statement. Change the program logic so that the program executes the multi-line DEF's FNEND statement before executing the END, SUBEND or FUNCTIONEND statement. This error cannot be trapped with a BASIC error handler.