Variables must be defined at the beginning of a class, method or function.
That's right:
PUBLIC SUB bla() i AS Integer y AS Integer i = 5 y = 6 END
That's wrong:
PUBLIC SUB bla() i AS Integer i = 5 y AS Integer y = 6 END-- JochenGeorges - 07 Jan 2005