Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi E2217 Published field 'TestADR1' not a class (https://www.delphipraxis.net/121257-e2217-published-field-testadr1-not-class.html)

cramer 24. Sep 2008 17:17


E2217 Published field 'TestADR1' not a class
 
Hi,
ich stelle gerade einige Applikationen von D5 auf BDS2006 um.
Hat jemand eine Erklärung und Lösung für folgenden Fehler:
Delphi-Quellcode:
[Pascal Error] TESTU.pas(32): E2217 Published field 'TestADR1' not a class or interface type
Die beiden Units sehen wie folgt aus:
Delphi-Quellcode:
unit ADRU;
interface
uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  ...

type
  TADR = class(TFrame)
    A_DS: TDataSource;
    ...
Delphi-Quellcode:
unit TESTU;
interface
uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  ADRU ...

type
  TTEST = class(TForm)
    TestADR1: TADR;                 <-- Errorline
    DataSource1: TDataSource;
    ...
Thanks in advance

DeddyH 24. Sep 2008 17:19

Re: E2217 Published field 'TestADR1' not a class
 
Kommt der Fehler auch, wenn Du die Deklaration in den private-Abschnitt verschiebst?

SirThornberry 24. Sep 2008 17:21

Re: E2217 Published field 'TestADR1' not a class
 
die Fehlermeldung sagt eigentlich alles. Dort wo du es plaziert hast wird es als published interpretiert. Der Typ den du verwendest hast ist aber keiner von den notwendigen für ein published Property.

cramer 24. Sep 2008 17:33

Re: E2217 Published field 'TestADR1' not a class
 
Super, Danke, im Private Bereich gibt es keinen Error mehr.
Dem D5 Compiler war es wohl egal, wo es steht.


Alle Zeitangaben in WEZ +1. Es ist jetzt 10:46 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz