C cnicolapc Active Member Licensed User Longtime User Sep 18, 2011 #1 hi, I'm trying to create a small converter to KCH kWh and Btu. I want the values are calculated in real time. (TextChanged). when I insert the values in the calculation is performed EditText Kwh IN KCH. But if I use backspace to erase EditText kWh, appears an error number format exception. attach example. can you help me please? Thank you Nicola
hi, I'm trying to create a small converter to KCH kWh and Btu. I want the values are calculated in real time. (TextChanged). when I insert the values in the calculation is performed EditText Kwh IN KCH. But if I use backspace to erase EditText kWh, appears an error number format exception. attach example. can you help me please? Thank you Nicola
K kickaha Well-Known Member Licensed User Longtime User Sep 18, 2011 #2 Test it to see if it is a number before using it Code: Copy Sub Kwh_TextChanged (Old As String, New As String) If IsNumber (New) Then Kch.Text=New*0.860 End Sub Upvote 0
Test it to see if it is a number before using it Code: Copy Sub Kwh_TextChanged (Old As String, New As String) If IsNumber (New) Then Kch.Text=New*0.860 End Sub
C cnicolapc Active Member Licensed User Longtime User Sep 18, 2011 #3 hi, Thank you very much for your help!! Nicola Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Sep 18, 2011 #4 It is recommended to use File - Export as zip instead of zipping the whole folder. This way it only adds the required files and makes the zip file much smaller. Upvote 0
It is recommended to use File - Export as zip instead of zipping the whole folder. This way it only adds the required files and makes the zip file much smaller.
Erel B4X founder Staff member Licensed User Longtime User Sep 18, 2011 #5 Please see my above remark. The global available size for forums attachments is limited. Upvote 0
C cnicolapc Active Member Licensed User Longtime User Sep 18, 2011 #6 Hi, Apologizes for the error Nicola Upvote 0