Autor Beitrag
Postfrosch
Hält's aus hier
Beiträge: 3

Windows XP Pro. SP3
Delphi 7 Enterprise (Build 4.453)
BeitragVerfasst: Sa 02.09.06 00:09 
Hallo zusammen,

ich habe folgendes Problem. Ich habe mehrere Eniträge in einer Datenbank. Nun wähle ich mir bei Programmstart einen Datansatz aus. Da diese Daten im kompletten Programm verwendet werden sollen dachte ich mir, ich packe sie in eine Klasse und "schleppe" sie halt mit mir rum. Da ist auch schon das Problem. Ich bekomme bei folgendem Code ständig die Fehlermeldung Ungenügende Forward- oder External-Deklaration: 'TUserData.SetDescription'.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
TUserData = class
    TBeschreibung, TLocalPath, TAccount: String;
  private
    { Private-Deklarationen }
    procedure SetDescription(Description: String);
    procedure SetLocalPath(LocalPath: String);
    procedure SetAccount(Account: String);
  public
    { Public-Deklarationen }
    property Description: String read TDescription write SetDescription;
    property LocalPath: String read TLocalPath write SetLocalPath;
    property Account: String read TAccount write SetAccount;
  end;

var
  Form1: TForm;
  Userdata: TUserdata;
...

Dann rufe ich die Hilfe auf und komme keinen Schritt weiter.
Ich weiss, ich könnte auch alles direkt definieren (da klappt es auch) wollte mir aber die Variablen "schützen".
Ich währe froh wenn mir jemand meinen (ich denke mal banalen) Fehler korrigieren könnte.

Danke im Voraus.
freak4fun
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 604
Erhaltene Danke: 4

Win 7 Pro
VS 2013 Express, Delphi, C#, PHP, Java
BeitragVerfasst: Sa 02.09.06 00:11 
Hast du die Methode ausgeprägt, also nicht nur im Type Teil reingeschrieben, sondern auch der Methode einen Inhalt gegeben? Drück mal Strg + Shift + C. ;)

MfG freak

_________________
"Ich werde auf GAR KEINEN Fall…!" - "Keks?" - "Okay, ich tu's."
i++; // zaehler i um 1 erhoehen
Postfrosch Threadstarter
Hält's aus hier
Beiträge: 3

Windows XP Pro. SP3
Delphi 7 Enterprise (Build 4.453)
BeitragVerfasst: Sa 02.09.06 00:22 
Titel: Alles wieder ok
Ich werde verrückt. Das war das einzige Problem? Naja irgendwann ist man(n) halt schlauer. Ich bedanke mich für die schnelle Antwort.
freak4fun
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 604
Erhaltene Danke: 4

Win 7 Pro
VS 2013 Express, Delphi, C#, PHP, Java
BeitragVerfasst: Sa 02.09.06 00:29 
Ich hatte die Fehlermeldung so oft, irgendwann weiß man was zu tun ist. ;) Viel erfolg beim weiteren programmieren. :)

MfG
freak

_________________
"Ich werde auf GAR KEINEN Fall…!" - "Keks?" - "Okay, ich tu's."
i++; // zaehler i um 1 erhoehen