Autor Beitrag
Erzengel Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 99

Win 2000, WinXP
Delphi 5 Enterprise
BeitragVerfasst: Mo 12.01.04 10:40 
Hallo habe jetzt die Lösung mit dem Counter

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:
29:
30:
procedure TForm1.NMPOP32DecodeStart(var FileName: String);
var

   Zeit,counter_str, path : String;
   Datei : textfile;
   counter : word;
   i : integer;
begin

    Zeit  := TimeToStr(Time);

    path:= ExtractFilePath(Application.ExeName);// Öffnen bzw. erstellen der Datei
    AssignFile(Datei, path + 'counter.txt');
    Reset(Datei);
    Readln(Datei, counter_str);
    counter:= strtoint(counter_str);
    Rewrite(Datei);  // Setzt Courser auf Anfang der Datei

    for i:=1 to NMPOP32.MailCount do
    begin
      counter:= counter + 1;

      Zeit := copy(Zeit, 1 ,2) +'_'+ copy(Zeit, 4 ,2) +'_'+ copy(Zeit, 7 ,2);
    end;
    Writeln(Datei, counter);
    CloseFile(Datei);

FileName :='\\ibasserver\ELOProf\Global\Postbox\vk\'+ Zeit + '_' + inttostr(counter) +'.tif';

end;


Bis dann