Hello
A newbie problem here I'm sure.
In the code below, the line "EEText.Text=n" will crash the app despite n being as expected. How can I modify the contents of an EditText box with the value of n, in this example a number padded with leading zeroes, as each numerical character is entered by the user please?
many thanks
A newbie problem here I'm sure.
In the code below, the line "EEText.Text=n" will crash the app despite n being as expected. How can I modify the contents of an EditText box with the value of n, in this example a number padded with leading zeroes, as each numerical character is entered by the user please?
B4X:
Sub EEText_TextChanged (Old As String, New As String)
Dim n As String
If New.Length >0 Then
n=NumberFormat2(EEText.text, 10, 0,0, False) ' pad with leading zeroes, min str length=10
EEText.Text=n
Log(n)
End If
End Sub
many thanks