|
-
Nov 21st, 2000, 03:57 AM
#1
Thread Starter
Fanatic Member
Hi,
does someone know if there's a function in VB that recognizes if a given text is an email?
i.e. something like
IsEmail("[email protected]") = true
and
IsEmail("hello@world") = false
...just wandering.
Thanks!
W.
When your car breaks down,
close all windows and retry 
=> please rate all users posts! <=
-
Nov 21st, 2000, 04:31 AM
#2
Member
Use Instr
Just make a function like this:
Code:
Public Function CheckEMail (sEmail as String) as Boolean
Dim i as Integer
i = Instr(1, sEmail, "@")
If i > 0 then CheckEMail = True Else CheckEmail = False
End Function
Call it with this:
Good Luck
A mind is like a parachute, it has to open to let it work
www.2beesoft.com for Icon Manager with over 20.000 free icons
VB6 Ent. SP4, ASP, W2000/W98
-
Nov 21st, 2000, 04:35 AM
#3
Thread Starter
Fanatic Member
Hehehe thanks that is already similar to what I'm doing , also using filters such as .com, .net, .org ...
Thanks anyway! Anyone has other ideas?
When your car breaks down,
close all windows and retry 
=> please rate all users posts! <=
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|