G-ShadoW Active Member Licensed User Longtime User Dec 7, 2015 #1 How to calculate this 00001 + 1 = 00002 etc I have in edittext 00001 and I want to increase it by 1 at any operation...
How to calculate this 00001 + 1 = 00002 etc I have in edittext 00001 and I want to increase it by 1 at any operation...
klaus Expert Licensed User Longtime User Dec 7, 2015 #2 To display leading zeros you must use NumberFormat2. Upvote 0
G-ShadoW Active Member Licensed User Longtime User Dec 7, 2015 #3 B4X: EditText4.Text=EditText2.text + EditText3.text EditText4.Text=NumberFormat(EditText4.text, 5,0) EditText4.Text=EditText4.Text.Replace(",","") EditText4.Text=EditText4.Text.Replace(".","") Any better solution... Upvote 0
B4X: EditText4.Text=EditText2.text + EditText3.text EditText4.Text=NumberFormat(EditText4.text, 5,0) EditText4.Text=EditText4.Text.Replace(",","") EditText4.Text=EditText4.Text.Replace(".","") Any better solution...
Jeffrey Cameron Well-Known Member Licensed User Longtime User Dec 7, 2015 #4 Try B4X: EditText4.Text = NumberFormat2((EditText2.Text + EditText3.Text), 5, 0, 0, False) Upvote 0