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:
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:
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:
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. |