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
Printable View
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
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)
Thats perfect thanks