开发者

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 ;)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜