Autor Beitrag
Shaky
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 72

WinXP
D5, Delphi 2005 Prof.
BeitragVerfasst: Di 07.06.05 09:27 
Hi.

Ich hab irgendwie nen doofes Problem.
Also ich hab hier ein Databand was ein so ein Calctext richtig mit der Summer der einzelnen Zeilen füllt.
Jetzt hab ich auf dem Calctext bei events Afterprint, Afterreport

Text5.text:=floattostr(trunc((CalcText1.value / 116) * 100 *100)/100);
Text6.text:=floattostr(trunc((CalcText1.value - strtofloat(text5.text)) * 100) / 100);
text5.text:=text5.text + ' €';
text6.text:=text6.text + ' €';

Weil dieses Textfield hat ja keine Formatproperty also Displayformat oder so.

#,##0.00 € möchte ich haben

Aber meine Methode da oben die zeigt wenn die letzten stellen 0 sind zeigt das textfeld Sie nicht an.
Deshalb brauche ich irgendwie ne Komponente wo ich Displayformat draufmachen kann.

Danke.

Achja benutze Rave Report 6.0 BE und Delphi 2005 Prof.