Perpetual string math calculator.
#16
Well, none of the local experts noticed that the result in Visual Basic was wrong?  Rolleyes

That is corrext:
Code: (Select All)
Private Sub cmdCommand_Click()

  Dim Zahl1, Zahl2, Ergebnis As Double
 
  'Die Zahlen müssen einzeln aus den Textfeldern gelesen werden
  'Das "Ergebnis = Val(txtZahl1.Text + txtZahl2.Text)" geht nicht
  Zahl1 = Val(txtZahl1.Text)
  Zahl2 = Val(txtZahl2.Text)
  Ergebnis = Zahl1 + Zahl2
  txtErgebnis.Text = Format$(Ergebnis, "###.##") 'Punkt! Englische Version.

End Sub


[Image: Runden-Prog-Fehler2022-08-12-225439.jpg]

Give me a gun!   Tongue

Reply


Messages In This Thread
Perpetual string math calculator. - by Pete - 08-10-2022, 05:11 PM
RE: Perpetual string math calculator. - by Pete - 08-11-2022, 03:24 AM
RE: Perpetual string math calculator. - by Pete - 08-11-2022, 12:39 PM
RE: Perpetual string math calculator. - by Pete - 08-11-2022, 08:29 PM
RE: Perpetual string math calculator. - by Pete - 08-11-2022, 10:08 PM
RE: Perpetual string math calculator. - by bplus - 08-11-2022, 10:07 PM
RE: Perpetual string math calculator. - by Jack - 08-11-2022, 10:35 PM
RE: Perpetual string math calculator. - by Pete - 08-11-2022, 11:35 PM
RE: Perpetual string math calculator. - by Jack - 08-11-2022, 11:42 PM
RE: Perpetual string math calculator. - by Pete - 08-11-2022, 11:51 PM
RE: Perpetual string math calculator. - by Pete - 08-12-2022, 01:56 AM
RE: Perpetual string math calculator. - by Kernelpanic - 08-12-2022, 09:14 PM



Users browsing this thread: 7 Guest(s)