Autor Beitrag
rob87
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 461

Win Me, Win XP Home, Win XP Prof
Delphi 2007 Enterprise
BeitragVerfasst: Di 22.01.08 11:46 
Hallo,

ich hab grad das Problem bei einer selbst geschriebenen Prozedur:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
type Tfrm... = class(TForm)...
private
   ...
public
    procedure excel(modus: string);   <<--- hier kommt die Fehlermeldung
    ...


Weiter unten:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
procedure excel(modus: string);
begin
  caption := 'test';
end;


Bekomm in der markierten Zeile die Fehlermeldung: "Ungenügende Forward- oder External-Deklaration"


Zuletzt bearbeitet von rob87 am Di 22.01.08 11:51, insgesamt 1-mal bearbeitet
zuma
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 660
Erhaltene Danke: 21

Win XP, Win7, Win 8
D7 Enterprise, Delphi XE, Interbase (5 - XE)
BeitragVerfasst: Di 22.01.08 11:49 
nach der Type-definition nun noch im implementation-teil

procedure Tfrm...excel(modus:String);
begin

end;

und schon sollte es gehen ;)

_________________
Ich habe nichts gegen Fremde. Aber diese Fremden sind nicht von hier! (Methusalix)
Warum sich Sorgen ums Leben machen? Keiner überlebts!
Horschdware
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 744
Erhaltene Danke: 54

Win XP Pro, Win 7 Pro x64
Delphi 7, Delphi XE, C++ Builder 5, SAP R/3
BeitragVerfasst: Di 22.01.08 11:49 
hallo,
die prozedur soll laut der markierten zeile ein teil der formularklasse sein.
unten bei der implementierung der prozedur fehlt allerdings die zuordnung zu der klasse.
ausblenden Delphi-Quelltext
1:
2:
3:
4:
procedure Tfrmxxx.excel(modus : string);
begin

end;

_________________
Delphi: XE - OS: Windows 7 Professional x64
SvenAbeln
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 334
Erhaltene Danke: 3



BeitragVerfasst: Di 22.01.08 11:51 
Du mußt unten auch die Klasse mit angeben.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
type Tfrm... = class(TForm)...

[...]

procedure Tfrm... .excel(modus: string);
begin
rob87 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 461

Win Me, Win XP Home, Win XP Prof
Delphi 2007 Enterprise
BeitragVerfasst: Di 22.01.08 11:54 
OK. Dankeschön. Ich dachte, es wär ned zwangsläufig notwendig, da
1) alles in derselben Klasse ist und
2) zweitens nicht unbedingt der Prozedur-Aufruf notwendig ist, um es zu deklarieren

(Thread gelöst)

Moderiert von user profile iconNarses: Beiträge zusammengefasst