Error 115: Class must be defined at global level A class has been defined locally. Classes must be defined at the beginning of the program (or at the beginning of either the INTERFACE or IMPLEMENTATION sections of a unit) in order to make them global definitions. Move the class definition up with the global level declarations.