Autor Beitrag
Jerk
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 251

Vista Ultimate, Ubuntu
Turbo Delphi 2006
BeitragVerfasst: Mo 14.07.08 20:51 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
 type TEasyMenue = Class(TObject)
 private
  fExecPath : String;
  fCaption  : String;
  lbCaption : TLabel;
  imLogo    : TImage;
  Procedure OnClick(Sender : TObject);
 public
  constructor Create;
  destructor Destroy;
  Property Caption read fCaption write fCaption;
  Property Path read fExecPath write fExecPath;
 End;


Warum:
E2147 Eigenschaft 'Caption' existiert nicht in Basisklasse
E2147 Eigenschaft 'Path' existiert nicht in Basisklasse

Was mache ich falsch -.-?


Danke für eure Hilfe.
Tilman
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1405
Erhaltene Danke: 51

Win 7, Android
Turbo Delphi, Eclipse
BeitragVerfasst: Mo 14.07.08 20:56 
Weil du keinen Typ angibts (: String), denkt Delphi du möchtest eine als protected deklarierte Eigenschaft überschreiben. Also einfach den Typ angeben und es müsste funzen.

_________________
Bringe einen Menschen zum grübeln, dann kannst du heimlich seinen Reis essen.
(Koreanisches Sprichwort)
Jerk Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 251

Vista Ultimate, Ubuntu
Turbo Delphi 2006
BeitragVerfasst: Mo 14.07.08 21:03 
*kopfgegenwand*

Danke!