Find Code:
All Words
Any of the Words
Exact Phrase
Home
:
Code
:
Forums
:
Submit
:
Mailing List
:
About
:
Contact
Code
All
VB.NET
ASP.NET
C#
VB Classic
ASP Classic
Snippets
Popular
Resources
Submit Code
Forums
Articles
Tips
Links
Books
Contest
Link to us
Checks the syntax of the email address that has b...
Author:
Louis Delongchamp
E-mail:
Click to e-mail author
Website:
http://www.cyberbeach.net/~loudelon/index.htm
Submitted:
3/2/2002
Version:
VB6
Compatibility:
VB6
Category:
String Manipulation
Views:
10997
Checks the syntax of the email address that has been entered in a text box to ensure it is valid. Does not check the link for validity. Visit my homepage! http://www.cyberbeach.net/~loudelon/index.htm
Declarations:
'none
Code:
Private Function EmailOK(ByVal Email As String) As Boolean If Email = "" Or Email Like "*@*" _ And (Email Like "*.??" Or Email Like "*.???") _ Then EmailOK = True If Email Like "*.???" Then Select Case Right$(Email, 4) Case ".com", ".net", ".edu", ".mil", ".gov", ".org" Case Else: EmailOK = False End Select End If End Function
Home
|
Forums
|
Submit
|
Books
|
Mailing List
|
Advertising
|
About
|
Contact
© 2024 A1VBCode. All rights reserved.
Legal disclaimer & terms of use
Privacy statement