In order to keep your form and source code synchronized, Delphi 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:
type ... TForm1 = class(TForm) Field1:FieldType; Field2:FieldType; ...
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.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!