How to field validate in visual basic
Say i'm creating an email 开发者_高级运维list. How would I validate the field to not accept text without the '@' sign?
You can check indexOf() method. It will return an integer.
If email.indexOf("@") < 3 Then
MessageBox("Invalid email")
End If
I think this syntax is correct. Not sure ;)
精彩评论