Delphi Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreDelphi Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 28th, 2004, 04:41 AM
shalilatharash shalilatharash is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 13 shalilatharash User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Global Standard Email field validation in Delphi 6

Hi All,
Just wanna ask if there is any standard email field validation in Delphi 6?

Actually I've did some email validation on my own, below is how I control :

if (Pos('@', ownEmail.Text) <= 0) or (Pos('.',ownEmail.Text) <= 0) Then

Begin
MsgDlg('Invalid Email',mtInformation,[mbOk]);
ownEmail.SetFocus;
Exit;
End;

But seems when user tested the system, they are quite creative and report the system bugs that the system still can accpet email value like "@abc.com", "er@ra@.com", "re...@com" etc. Since there are so many possibility that the user can enter, thats why I wanna ask, is there any standardization for email validation in Delphi 6?

Thanks...

Reply With Quote
  #2  
Old June 28th, 2004, 05:01 AM
Elbryan Elbryan is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Location: Behind you
Posts: 19 Elbryan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via MSN to Elbryan
try to use a mask edit..or you can make a series of concatenated if.

// *********
i := pos('@',s);
If i = 0 then error else
begin
delete(s,i,1);
i := pos('@',s);
if i = 0 then ok

again again again do it also for "." and for another signs..

byez

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreDelphi Programming > Global Standard Email field validation in Delphi 6

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap