Hi,
The program that I have to make is suppose to check if the things I entered in the textbox is numeric and also if it's 9 digits. I tried a lot of ways to do it but none of them seem to work. Maybe someone can help me. This is my code for it:
Private Function TestInput() As Boolean
If IsNumeric(txtID .Text) and Len(Val(txtID.t ext)) Then
MsgBox("Please enter an appropriate FID.", MsgBoxStyle.Exc lamation, "Enter FID Properly")
txtFID.Focus()
Return False
End If
End Function
Thanks
The program that I have to make is suppose to check if the things I entered in the textbox is numeric and also if it's 9 digits. I tried a lot of ways to do it but none of them seem to work. Maybe someone can help me. This is my code for it:
Private Function TestInput() As Boolean
If IsNumeric(txtID .Text) and Len(Val(txtID.t ext)) Then
MsgBox("Please enter an appropriate FID.", MsgBoxStyle.Exc lamation, "Enter FID Properly")
txtFID.Focus()
Return False
End If
End Function
Thanks
Comment