Skip to content

Planet-Source-Code/chris-priest-validateemail__1-4181

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

ValidateEmail

Description

Provides the user with a means of validating an email address. Using the like keyword, checks the email address with a specific pattern and will pick up on invalid chars for example, john.doe@.test.com will return false as would john.doe@com.

More Info

strEmail - Email address that needs to be checked

The like statement allows pattern matching against the email address.

Like "@[a-z,0-9].*"

This would allow anything before the @ sign, and the first letter after the @ sign must be either a number of letter and somewhere after that there must be at least one full stop

Boolean value indicating if email address is valid

Submitted On
By Chris Priest
Level Unknown
User Rating 4.3 (166 globes from 39 users)
Compatibility VB 5.0, VB 6.0
Category Internet/ HTML
World Visual Basic
Archive File

Source Code

Public Function ValidateEmail(strEmail As String) As Boolean
ValidateEmail = strEmail Like "*@[A-Z,a-z,0-9]*.*"
End Function

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published