|
-
Sep 20th, 2007, 04:34 PM
#1
Thread Starter
New Member
[RESOLVED] LTRIM on email address
I want to restrict users to a site by the company part of the email address
ie I want to trim everything before @ and get say @powderworks.com.au
I think it is LTRIM but don't know how you LTRIM on @
Any ideas would be appreciated
-
Sep 20th, 2007, 05:47 PM
#2
Re: LTRIM on email address
Here is an example:
Code:
Dim MyEmail As String = "[email protected]" 'not real email address ;)
Dim JustDomain As String = MyEmail.Substring(MyEmail.IndexOf("@"c))
MessageBox.Show(JustDomain)
-
Sep 20th, 2007, 06:35 PM
#3
Thread Starter
New Member
Re: LTRIM on email address
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
|