Results 1 to 3 of 3

Thread: [RESOLVED] LTRIM on email address

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2007
    Posts
    3

    Resolved [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

  2. #2
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    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)

  3. #3

    Thread Starter
    New Member
    Join Date
    Sep 2007
    Posts
    3

    Re: LTRIM on email address

    Thats perfect thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width