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: 43: 44: 45: 46: 47:
| procedure TForm1.Protokoll1Click(Sender: TObject); var i : integer; dateien, tmp, format, tmp1, tmpX : string; begin Form4.Label1.Caption := ''; for I := 1 to strtoint(konfig.ReadString('Konfiguration', 'Einträge', '')) do begin format := konfig.ReadString(inttostr(i), 'Formatierung', '');
Form4.Label1.caption := Form4.Label1.caption + #13 + 'Laufzeit: ' + inttostr(konfig.ReadInteger(inttostr(i), 'ProgrammLaufZeit', 0)); Form4.Label1.caption := Form4.Label1.caption + #13 + 'Formatierung: ' + format; Form4.Label1.caption := Form4.Label1.caption + #13 + 'Trennungszeichen: ' + konfig.ReadString(inttostr(i), 'Trennungszeichen', ''); while format <> '' do begin if PosEx('%', format, 2)<>0 then begin tmp := copy(format, 1, PosEx('%', format, 2)-1); delete(format, 1, PosEx('%', format, 2)-1); end else begin tmp := copy(format, 1, length(format)); delete(format, 1, length(format)); end; dateien := konfig.ReadString(inttostr(i), tmp, ''); while dateien <> '' do begin if PosEx(',', dateien, 2)<>0 then begin tmp1 := copy(dateien, 2, PosEx(',', dateien, 2)-2); delete(dateien, 1, PosEx(',', dateien, 2)-1); end else begin tmp1 := copy(dateien, 2, length(dateien)); delete(dateien, 1, length(dateien)); end; tmpX := konfig.ReadString('Kategorien', tmp, ''); Form4.Label1.caption := Form4.Label1.caption + #13 + tmpX +': ' + tmp1 + ' : '+ konfig.ReadString(inttostr(i), tmp+'_'+tmp1+'_Zeit', ''); end; end; Form4.Label1.caption := Form4.Label1.caption + #13 + #13; end; Form4.Visible := true; Form4.Height := Form4.Label1.Height + 50; Form4.Button1.Top := Form4.Height - 50; end; |