Autor Beitrag
Ironhead
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 57

Win XP,Kanotix 5

BeitragVerfasst: Sa 03.06.06 22:01 
Hallöle

Hab ein Problem mit meiner Listbox wenn ich eine Dezimalzahl in die ini Speichere macht er das, aber beim Lesen schneidet er die Nachkommastelle ab und schreibt sie in ein Item darunter

Fürs schreiben nehme ich:

ausblenden Delphi-Quelltext
1:
ini.WriteString(Self.Name, ListBox1.Name, ListBox1.Items.DelimitedText);					


und fürs Lesen:

ausblenden Delphi-Quelltext
1:
ListBox1.Items.DelimitedText := ReadString(Self.Name, ListBox1.Name, '');					


woran könnte das liegen?, und wie könnte ich das beheben?, sodaß er eine Dezimalnote auch so liest wie ich sie gespeichert hab.
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10183
Erhaltene Danke: 1256

W10ent
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Sa 03.06.06 23:12 

_________________
There are 10 types of people - those who understand binary and those who don´t.
Ironhead Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 57

Win XP,Kanotix 5

BeitragVerfasst: Sa 03.06.06 23:47 
Danke, das hat mir sehr gut weitergeholfen, hab es mit deinem Beitrag geschaft, auch wenn ich erst mal einige zeit fummeln musste, weil ich nich wusste wie ich das umsetzen sollte.

Hat am ende aber gefunzt und ich danke die rechtherzlich dafür.
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10183
Erhaltene Danke: 1256

W10ent
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Sa 03.06.06 23:57 
Moin!

Fein, wenn´s funktioniert. ;)

Markierst du den Thread dann noch entsprechend, wenn dein Problem gelöst ist? Danke.

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.