A Adnan Ali Awan New Member Jul 3, 2016 #1 Hello, Just trying to add two number which i give in the relative edit boxes and the sum is suppose to show in another editbox with the name of edittext3 I just tried playing around and realized that : Sub Calculate_Click Dim X As Double Dim Y As Double Dim Z As Double X=EditText1.Text Y=EditText2.Text Z= X + Y End Sub Z=EditText3.Text isn't equal to EditText3.Text = Z Can anybody explain me why it is like that? Has it sth to go with get and set value of editbox? End Sub
Hello, Just trying to add two number which i give in the relative edit boxes and the sum is suppose to show in another editbox with the name of edittext3 I just tried playing around and realized that : Sub Calculate_Click Dim X As Double Dim Y As Double Dim Z As Double X=EditText1.Text Y=EditText2.Text Z= X + Y End Sub Z=EditText3.Text isn't equal to EditText3.Text = Z Can anybody explain me why it is like that? Has it sth to go with get and set value of editbox? End Sub
Erel B4X founder Staff member Licensed User Longtime User Jul 4, 2016 #2 Code: Copy Z = EditText3.Text 'Assigns the value in EditText3.Text to Z EditText3.Text = Z 'Assigns the value of Z to EditText3.Text Upvote 0
Code: Copy Z = EditText3.Text 'Assigns the value in EditText3.Text to Z EditText3.Text = Z 'Assigns the value of Z to EditText3.Text