I am trying to do something similar to the VB6 code below to filter the text input to numeric only including a decimal point. Is there a way of accomplishing this in B4A?
VB6 CODE:
Private Sub Text1_KeyPress(KeyAscii As Integer)
Select Case KeyAscii
Case 46, 48 To 57
Case Else
KeyAscii = 0
End Select
End Sub
Thanks,
Chriss
VB6 CODE:
Private Sub Text1_KeyPress(KeyAscii As Integer)
Select Case KeyAscii
Case 46, 48 To 57
Case Else
KeyAscii = 0
End Select
End Sub
Thanks,
Chriss