Skip to main content
 
developerWorks
AIX and UNIX
Information Mgmt
Lotus
New to Lotus
Products
How to buy
Downloads
Live demos
Technical library
Training
Support
Forums & community
Events
Rational
Tivoli
WebSphere
Java™ technology
Linux
Open source
SOA and Web services
Web development
XML
My developerWorks
About dW
Submit content
Feedback



developerWorks  >  Lotus  >  Forums & community  >  Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum

developerWorks

  

Sign in to participate PreviousPrevious NextNext


amar ku das 16.Sep.16 05:26 AM a Web browser
Domino Server 7.0.3 Windows Vista


Hi All,

I have a code which validate Email id not have special character or ascii charter and it is running fine but it take some time to serach so can you help me is there any process who execute this fast with all check

My Code-> in email it carry email id
Function allemailcheck(email As String) As Integer
Dim count As Integer
Dim count1 As Integer
Dim strSpecial As String
Dim intCountSpecial As Integer

strSpecial = "<>=?*+/\!#${}[]()^~%|;:,`" & Chr(32) + Chr(34) + Chr(13) + Chr(10)

count=0
count1=0

If Not email Like "[!@,*,&]*@*.[! @]*[! @,.,&,!]" Then
allemailcheck=0
Msgbox("Special characters found in the Email Address. Please enter a valid Email Address.")
Exit Function
End If

For i=1 To Len(email)
oneChar$=Mid(email, i,1)

If Mid(Trim(email), i, 2) = "@." Or Mid(Trim(email), i, 2) = ".." Or Mid(Trim(email), i, 2) = ".@" Then
allemailcheck=0
Msgbox("Special characters found in the Email Address. Please enter a valid Email Address.")
Exit Function
End If

If onechar$="@" Then
count=count+1
If count>1 Then
allemailcheck=0
Msgbox("Special characters found in the Email Address. Please enter a valid Email Address.")
Exit Function
End If
End If


For intCountSpecial = 1 To Len(Trim(strSpecial))

If Asc(onechar$) < 33 Then
allemailcheck=0
Msgbox("Special characters found in the Email Address. Please enter a valid Email Address.")
Exit Function
End If


If onechar$ = Mid(Trim(strSpecial), intCountSpecial, 1) Then
allemailcheck=0
Msgbox("Special characters found in the Email Address. Please enter a valid Email Address.")
Exit Function
End If
Next


allemailcheck=1

Next

End Function






Need Check Email ID with out specia... (amar ku das 16.Sep.16)
. . RE: Need Check Email ID with out sp... (Mark Taylor 16.Sep.16)
. . . . RE: Need Check Email ID with out sp... (amar ku das 19.Sep.16)
. . . . . . RE: Need Check Email ID with out sp... (Mark Taylor 19.Sep.16)
. . . . . . . . RE: Need Check Email ID with out sp... (amar ku das 20.Sep.16)





  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Author
Category
Platform
Release
Advanced search

 Sign In or Register
Sign in
Forgot your password?
Forgot your user name?
Create new registration

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds

Resources

 Resources
Forum use and etiquette
Native Notes Access
Web site Feedback

Lotus Support

 Lotus Support
IBM Support Portal - Lotus software
Lotus Support documents
Lotus support by product
Lotus support downloads
Lotus support RSS feeds

Wikis

 Wikis
IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Connections Cloud Developers
IBM Docs
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud for Social Business
IBM Web Experience Factory
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Protector
Lotus Quickr
Lotus Symphony
IBM Web Content Manager
WebSphere Portal

Lotus Forums


 Lotus Forums
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
IBM Connections
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
Lotus Enterprise Integration
Lotus Protector
Lotus Quickr
Lotus SmartSuite