Method contains syntax errors. Method is not saved (Error 1765)

You have either included more than one procedure or have a class declaration in the code.

Fix the code and try again.