Incorrect field declaration in class <ClassName>

From Appmethod Topics
Jump to: navigation, search

Go Up to Error Messages Index

In order to keep your form and source code synchronized, Object Pascal must be able to find and maintain the declaration of each field in the first section of the form's class definition. Though the compiler allows more complex syntax, the form Designer will report an error unless each field that is declared in this section is equivalent to the following:

	   TForm1 = class(TForm)

This error has occurred because one or more declarations in this section have been deleted, commented out, or incorrectly modified. Use undo to reverse 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.