Autor Beitrag
Der Terrant
Hält's aus hier
Beiträge: 6



BeitragVerfasst: Mo 17.03.08 13:34 
Noch ein kleines Problem... Wenn ich versuche die Werte eines "normalen" TStrings (in diesem Beispiel WortSpeicher) auf ein array of TStrings zu übertragen erhalte ich die Fehlermeldung "Abstract Error".
Mit der Zuweisung in Zeile 14 (zum Testen) erhalte ich die identische Fehlertyp...
Kann da mir mal einer ein wenig weiterhelfen???

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
procedure TForm2.Memo1Change(Sender: TObject);
var Eigenschaften:array of Inhalt;
    Wort:array of TStrings;
    WortSpeicher:TStrings;
    a1, a2, a3:integer;
    c:char;
begin
   
     if memo1.Lines.Count>0 then
       for a1:= 0 to memo1.Lines.Count-1 do begin
         WortSpeicher:=TStrings.Create;
         if high(Wort)>Low(Wort) then setlength(Wort,High(Wort)+1) else setlength(Wort,1);
         Wort[High(Wort)]:=TStrings.Create;

         Wort[High(Wort)].Add('Hallo');
         a3:=0;
         for a2:=0 to length(memo1.Lines.Strings[a1])-1 do begin
            c:=memo1.Lines.Strings[a1][a2];
            case c of
              'a'..'z', 'A'..'Z', '0'..'9':  Wortspeicher.Strings[a3]:=WortSpeicher.Strings[a3]+c;
            else
              inc(a3);
            end;
         
         end;
         Wort[High(Wort)].AddStrings(WortSpeicher);      <--------------  hier ein abstrakter Fehler
         WortSpeicher.Clear;
       end;


Moderiert von user profile iconNarses: Code- durch Delphi-Tags ersetzt
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Mo 17.03.08 14:06 
Moin!

Schau mal hier. :idea: ;)

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
Der Terrant Threadstarter
Hält's aus hier
Beiträge: 6



BeitragVerfasst: Mo 17.03.08 17:44 
Danke... funzt!