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: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42:
| TBild = class Pfad: string; Eigenschaftentyp1 : array of string; Eigenschaftentyp2 : array of string; Eigenschaftentyp3 : array of string; Eigenschaftentyp4 : array of string; Eigenschaftentyp5 : array of string; procedure zuordnen(original: string); end;
Bilder : array of TBild;
AssignFile(datei,dateiname); Reset(datei); while not eof(datei) do begin i := i + 1; Readln(datei,s); if i = 1 then begin temp1 := suchen('"',s,2); Typ1 := schneiden(2,temp1 -1,s); temp2 := suchen('"',s,temp1+3); Typ2 := schneiden(temp1+3,temp2 - 1,s); temp1 := suchen('"',s,temp2+3); Typ3 := schneiden(temp2+3,temp1 - 1,s); temp2 := suchen('"',s,temp1+3); Typ4 := schneiden(temp1+3,temp2 - 1,s); Typ5 := schneiden(temp2+3,length(s)-1,s); Suchen1.Caption := Typ1; Suchen2.Caption := Typ2; Suchen3.Caption := Typ3; Suchen4.Caption := Typ4; Suchen5.Caption := Typ5; end else begin Setlength(Bilder,i-1); Bilder[i-2].create; Bilder[i-2].zuordnen(s); end; |