B4J Question [BANano] Sum numbers (solved)

angel_

Well-Known Member
Licensed User
Longtime User
I have something similar to this:

B4X:
Sub Class_Globals
    Dim BANano As BANano 'ignore

    Private txtNumber1 As SKTextBox                    'ignore
    Private txtNumber2 As SKTextBox                    'ignore
    Private txtNumberResult As SKTextBox            'ignore
End Sub

Sub Calculate
    Dim Number1 As Double = txtNumber1.Text
    Dim Number2 As Double = txtNumber2.Text
    Dim NumberResult as Double
    
    NumberResult = Number1 + Number2
    
    txtNumberResult.Text = NumberResult
End Sub

In the result I get a concatenation of numbers instead of the sum
 
Top