Autor Beitrag
mehmeh
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 97

WIN XP
D5 Prof
BeitragVerfasst: Do 30.06.05 09:49 
ausblenden Delphi-Quelltext
1:
[Fehler] Unit1.pas(27): Ungenügende Forward- oder External-Deklaration: 'TForm1.sendMail'					


Hi kann mir jemand sagen wo hier mein Fehler liegt und wie ich ihn beheben kann!

Danke
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Do 30.06.05 09:51 
Du hast zwar oben unter type eine Methode deklariert, dann dazu aber gar keinen Code unter implementation geschrieben.

Falls du das doch hast, dann hast du unter implementation vergessen, TForm1. vor die Methode zu schreiben...

Beispiel:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
interface

type
  TForm1 = class(Form1)
  public
    procedure sendMail;
  end;

implementation

end.

sendMail ist zwar deklariert, fehlt aber, ebenso hier:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
interface

type
  TForm1 = class(Form1)
  public
    procedure sendMail;
  end;

implementation

procedure sendMail;
begin

end;

end.

Richtig:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
interface

type
  TForm1 = class(Form1)
  public
    procedure sendMail;
  end;

implementation

procedure TForm1.sendMail;
begin

end;

end.
mehmeh Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 97

WIN XP
D5 Prof
BeitragVerfasst: Do 30.06.05 09:59 
Danke hat funktioniert :)