Autor Beitrag
elduchte
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 199

Win 2000, Win XP
Delphi 7
BeitragVerfasst: So 09.10.05 16:19 
Hallo,

wahrscheinlich sehe ich den Wald vor lauter Bäumen nicht....

Ich möchte einer berechneten Fließkommazahl bei der Ausgabe in einem Label einen Tausender-Punkt mitgeben, also aus 12345,67 soll 12.345,67 werden.

Wie kann ich das realisieren?

Danke
Andi
Tilo
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 1098
Erhaltene Danke: 13

Win7 geg. WInXP oder sogar Win98
Rad2007
BeitragVerfasst: So 09.10.05 16:45 
Vorschalg:
Zahl als String gehandeln und von der Kommastelle aus immer 3 Zeichen nach vorne gehen und ein Punkt einfügen.
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: So 09.10.05 16:56 
Ich würd's mal mit FormatFloat versuchen ... Siehe DOH für mehr Hilfe ...

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
Kokel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 79

XP Prof
delphi 2006 Prof.
BeitragVerfasst: So 09.10.05 18:03 
Vielleicht so:
ausblenden Delphi-Quelltext
1:
label1.caption:=Format('%10n',[strtofloat(edit1.Text)]);