Einzelnen Beitrag anzeigen

hors

Registriert seit: 18. Okt 2013
1 Beiträge
 
#1

Aus eine Listbox Kommazahlen herrausbekommen

  Alt 18. Okt 2013, 19:49
Hallo,
ich habe ein Problem :

Delphi-Quellcode:
for i:= 0 to ListBox3.Items.Count -1 do
 gesamt := StrToFloat(ListBox3.Items[i]) + gesamt;

       for i:= 0 to ListBox4.Items.Count -1 do
       gesamt2 := StrToFloat(ListBox4.Items[i]) + gesamt2;

          ergebnis := gesamt2 - gesamt;

  edit5.text := FloatToStrF(ergebnis,ffnumber,8,2);
gesamt,gesamt2,ergebnis und i sind double
Wenn es integer sind klappt es.

Ich hoffe Ihr könnt mir helfen!

lg hors

Geändert von hors (18. Okt 2013 um 19:51 Uhr) Grund: *Aus einer
  Mit Zitat antworten Zitat