Incorrect method declaration in class <ClassName>
Go Up to Error Messages Index
In order to keep your form and source code synchronized, Delphi must be able to find and maintain the declaration of each method in the first section of the form's class definition. The form Designer will report an error unless the field and method declarations in this section are equivalent to the following:
type ... TForm1 = class(TForm) Field1:FieldType; Field2:FieldType; ... <Method1 Declaration>; <Method2 Declaration>; ... ...
This error has occurred because one or more method declarations in this section have been deleted, commented out, or incorrectly modified. Use undo to reserve your changes or correct the declaration manually.
Note that this first section of the form's class declaration is reserved for use by the form Designer. To declare your own fields and methods, place them in a separate public, private, or protected section.