Autor Beitrag
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Sa 14.09.02 16:50 
Brauche schnell Hilfe !!!! Hier mal der Quelltext von meinem Proggi. Immer wenn der Button1 angeklick wird verreckt das Proggi !!!

HELFT MIR !!!

ausblenden 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:
var
  Form1: TForm1;
const
  pathToINI:string = 'c:\omgconfig.ini';

implementation

{$R *.DFM}

procedure LoadIni;
var Ini: TInifile;
begin
try
Ini.Create (pathToIni);
Form1.Button2.enabled:=ini.ReadBool ('config','internet',false);
Form1.Button3.enabled:=ini.ReadBool ('config','word',false);
Form1.Button4.enabled:=ini.ReadBool ('config','excel',false);
Form1.Button5.enabled:=ini.ReadBool ('config','powerpoint',false);
except
ShowMessage ('Keine Steuerungs Datei gefunden !');
end;
end;



procedure TForm1.Button1Click(Sender: TObject);

begin
  LoadIni;
end;

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Klabautermann
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Veteran
Beiträge: 6366
Erhaltene Danke: 60

Windows 7, Ubuntu
Delphi 7 Prof.
BeitragVerfasst: Sa 14.09.02 17:37 
Hallo
matze hat folgendes geschrieben:

ausblenden Quelltext
1:
Ini.Create (pathToIni);					


das muss
ausblenden Quelltext
1:
Ini := tIniFile.Create(pathToIni);					

heißen.

Gruß
Klabautermann
matze Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Sa 14.09.02 17:42 
:oops:
Danke
Oh mann was für ein Versager-Fehler !! Ich stell mich jetzt in die Ecke... Ich bines nicht würdig... Halt jetzt gehts zuweit :wink:

Aber trotzdem : DAAAAANNNNKKKKEEEE !!!


:eyes: :hair:

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Klabautermann
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Veteran
Beiträge: 6366
Erhaltene Danke: 60

Windows 7, Ubuntu
Delphi 7 Prof.
BeitragVerfasst: Sa 14.09.02 18:15 
Da gibt es nur eins:
:mahn: üben, üben, üben ...

Das war ja nur ein Flüchtigkeitsfehler. Der taucht nicht mehr auf wenn du deine ersten 2000 Objekte erzeugt hast ;).

Gruß
Klabautermann
matze Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Sa 14.09.02 19:49 
ok. aber trotzdem danke für deine schnelle hilfe !

_________________
In the beginning was the word.
And the word was content-type: text/plain.