Hoi,
i want to count decimals (here money), but got always erros.
it should simply add the lblPreis.Text(LabelText= i.e. 3.20) to Bestellsumme (Double= i.e. 2.20)
Here is the code i am using:
The error message is:
I tried around, but without knownledge its only try-and-error
i want to count decimals (here money), but got always erros.
it should simply add the lblPreis.Text(LabelText= i.e. 3.20) to Bestellsumme (Double= i.e. 2.20)
Here is the code i am using:
B4X:
Dim Bestellsumme as Double
lblPreis.Text= NumberFormat2(lblPreis.Text,0,2,2,False)
Bestellsumme = NumberFormat2(Bestellsumme,0,2,2,False)
Bestellsumme = Bestellsumme + lblPreis.Text
lblSumme.Text = Bestellsumme
lblSumme.Visible = True
The error message is:
java.lang.NumberFormatException: Invalid double:"3.20"
I tried around, but without knownledge its only try-and-error