Hi,
How do I validate input correct correct. There is no lost focus event
I try to catch all there is not numbers.
This does not change the text, and if I try.
It seems to fire event again.
Mogens
How do I validate input correct correct. There is no lost focus event
I try to catch all there is not numbers.
B4X:
Sub B4XFloatTextField1_TextChanged (old As String, new As String)
If IsNumber(new) = False Then
new = old
B4XFloatTextField1.text = old
End If
End Sub
This does not change the text, and if I try.
B4X:
Sub B4XFloatTextField1_TextChanged (old As String, new As String)
If IsNumber(new) = False Then
new = old
B4XFloatTextField1.text = "0"
End If
End Sub
It seems to fire event again.
Mogens