Hallo,
Habe folgendes Problem. Ich lese von einer INI File eine Einstellung die nur von 1 - 4 sein kann.
Nur wenn ich das mir ReadString hohlen übernimmt mir ExtPath das leider nicht mehr.
Das heitß das in ExtPath statt 1 - 4 ein falscher Wet steht.
Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9:
| ini := TiniFile.create(fn1); ExtPath := ini.ReadString('Data Files','ExtPath',''); Check7 := ini.ReadString('Delete Box','CheckBox7',''); ini.free;
If (ExtPath = IntToStr(1)) then ?? If (ExtPath = IntToStr(2)) then ??? If (ExtPath = IntToStr(3)) then ??? If (ExtPath = IntToStr(4)) then ??? |
In der INI steht zB.: ExtPath=2
Bei ExtPath steht irrgend wie lange Zahlencodes was nicht sein kann.
Danke für Eure Hilfe