Autor Beitrag
der Berliner
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 417

Win Xp Home
delphi 2005
BeitragVerfasst: So 21.05.06 16:29 
Hallo
Warum kommt hier
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
Type TTipp = Record
            G:String;
            S:integer;
            M:String;
   end;
var Ti:Array[1..64] of TTipp;
var tf:file of TTipp; //<<-------

folgender Fehler:
Zitat:
[Pascal Error] UEndrunde.pas(290): E2155 Type 'TTipp' needs finalization - not allowed in file type


gruß

_________________
[b]Ich weiß nicht immer, wovon ich rede. Aber ich weiß, dass ich recht habe.[b]
Waldteufel
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: So 21.05.06 16:32 
Hi.

Soweit ich weiß, darf man in Records, die man bei file of verwendet, keine Strings mit undefinierter Länge benutzen.

Nimm also z.B.
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
type
  TTipp = Record
    G : string[255];
    S : integer;
    M : string[255];
  end;

var
  ti : array[1..64] of TTipp;
  tf : file of TTipp;
der Berliner Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 417

Win Xp Home
delphi 2005
BeitragVerfasst: So 21.05.06 16:38 
Danke
Goldrichtig der Tipp.
bis dann.

_________________
[b]Ich weiß nicht immer, wovon ich rede. Aber ich weiß, dass ich recht habe.[b]