开发者

How to field validate in visual basic

开发者 https://www.devze.com 2023-02-23 02:47 出处:网络
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.

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

精彩评论

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