Autor Beitrag
Taladan
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 88


Delphi 2005 Personal
BeitragVerfasst: Mo 06.06.05 22:17 
Warum will das nicht funktionieren?

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
    
    liste := Tstrings.Create;
    liste.append('Nr');
    liste.append('Name');
    liste.append('Geschlecht');
    liste.append('Herkunft');


Statt Append hab ich auch schon add verwendet. will aber beides nicht, warum?
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Mo 06.06.05 22:43 
Hallo,

die Fehlermeldung ist "Abstrakter Fehler", richtig?
Was sagt die Delphi-Hilfe dazu?
Zitat:
TStrings ist eine abstrakte Basisklasse für Objekte, die eine Liste mit Strings darstellen.

Lies Dir mal diesen Thread durch:
Lines.Add bei eigenem Objekt

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
Pr0g
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 220


D7 Pers
BeitragVerfasst: Mo 06.06.05 23:44 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
procedure TForm1.Button1Click(Sender: TObject);
var
  liste: TStrings;
begin
  liste := TStringList.Create;
  liste.Add('Nr');
  liste.Add('Name');
  liste.Add('Geschlecht');
  liste.Add('Herkunft');
end;


MfG Pr0g