Android Question Calculator

Matteo Granatiero

Active Member
Licensed User
In practice I need to add (as a value not as text) a number (+1) to a number entered in an EditBox. I tried so "rough"
B4X:
 EditText1.Text = "1"
Dim s As String = EditText1.Text
Msgbox (s + 1, "") [/ CODE]

My problem is this, which unfortunately leaves me, in the msgbox, "2.0". ONLY I will use the "2" as a value, how can I do?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…