Autor Beitrag
5M17H
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 164

XP, Vista32, bald auch Vista64
PHP(3/5), Delphi(2), Java(1), C(3), C#(1)
BeitragVerfasst: Do 05.07.07 13:29 
ausblenden volle Höhe Meine konfig.ini
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:
[Konfiguration]
Einträge=2
[Kategorien]
%PjN=Projecktname
%PN=Programmname
%DN=Dateiname
%DoN=Dokumentname
%BN=Bildname
%PaN=*.pas-Name
%WS=Website
%To=Topic
[1]
ProgrammTitel=Turbo Delphi
Trennungszeichen= - 
Formatierung=%PjN%PN%PaN
ProgrammLaufZeit=60
%PjN_ProzessDokumentation=ProzessDokumentation
%PjN_ProzessDokumentation_Zeit=60
%PjN=,ProzessDokumentation
%PN_Turbo Delphi=Turbo Delphi
%PN_Turbo Delphi_Zeit=60
%PN=,Turbo Delphi
%PaN_prozessdoku [wird ausgeführt]=prozessdoku [wird ausgeführt]
%PaN_prozessdoku [wird ausgeführt]_Zeit=60
%PaN=,prozessdoku [wird ausgeführt]
[2]
ProgrammTitel=Mozilla Firefox
Trennungszeichen= - 
Formatierung=%WS%PN
ProgrammLaufZeit=60
%WS_Delphi-Forum.de=Delphi-Forum.de
%WS_Delphi-Forum.de_Zeit=20
%WS=,Delphi-Forum.de,Google Reader,Oliver Lippert
%PN_Mozilla Firefox=Mozilla Firefox
%PN_Mozilla Firefox_Zeit=60
%PN=,Mozilla Firefox
%To_"Minimize to Tray" mit Turbo Delphi realisierbar?="Minimize to Tray" mit Turbo Delphi realisierbar?
%To_"Minimize to Tray" mit Turbo Delphi realisierbar?_Zeit=10
%To=,"Minimize to Tray" mit Turbo Delphi realisierbar?
%WS_Google Reader=Google Reader
%WS_Google Reader_Zeit=20
%WS_Oliver Lippert=Oliver Lippert
%WS_Oliver Lippert_Zeit=20
[Spezial]
Delphi-Forum.de - "Minimize to Tray" mit Turbo Delphi realisierbar? - Mozilla Firefox=%WS%To%PN

Ja so sieht das Momentan aus mit meiner Dokumentationssoftware.
Leider wird der key '%TO' nicht ausgelesen... Das verstehe ich nicht. Warum?
Mir ist übrigens gerade aufgefallen das ich '%WS_Google Reader' und '%WS_Google Reader_Zeit' vereinen kann denn den Websitenamen finde ich unter '%WS'... Na auch egal.
Ausgelesen wir das Ganze wie folgt:
ausblenden volle Höhe Form4 | Dokumentations-A[/delphi]nzeige
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;


Beim anzeigen kommt nur: user defined image
ZeitGeist87
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1593
Erhaltene Danke: 20

Win95-Win10
Delphi 10 Seattle, Rad Studio 2007, Delphi 7 Prof., C++, WSH, Turbo Pascal, PHP, Delphi X2
BeitragVerfasst: Do 05.07.07 13:40 
Gehts noch komplizierter?

Die Ini ist auch nicht gerade sinnvoll aufgebaut..

_________________
Wer Provokationen, Ironie, Sarkasmus oder Zynismus herauslesen kann soll sie ignorieren um den Inhalt meiner Beiträge ungetrübt erfassen zu können.