Grace Estoperez
Member
Greetings to all!
It's my first time posting here so please bear with me..
I'm creating a program where in a form, it contains 4 EditText and the 5th Edit Text is for the result.
What I want to happen is while the user is inputting the values the 5th EditText will automatically shows the result. In Visual Studio 2013 the code is like:
It's my first time posting here so please bear with me..
I'm creating a program where in a form, it contains 4 EditText and the 5th Edit Text is for the result.
What I want to happen is while the user is inputting the values the 5th EditText will automatically shows the result. In Visual Studio 2013 the code is like:
B4X:
Public Sub TextBox5_TextChanged(sender As Object, e As EventArgs) Handles TextBox1.TextChanged, TextBox2.TextChanged, TextBox3.TextChanged, TextBox4.TextChanged
Dim x As Integer
x = (Val(TextBox1.Text) + Val(TextBox2.Text) + Val(TextBox3.Text) + Val(TextBox4.Text))
TextBox5.Text = x
End Sub