Results 1 to 3 of 3

Thread: Finding character to the left of @

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2001
    Posts
    414

    Finding character to the left of @

    Should be simple but not today. I just need to return the character in a string that is just to the left of the character @

    So from the string vb@test the letter b would be returned

    Thanks

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    VB Code:
    1. Dim sTheString As String
    2. sTheString = "vb@test"
    3. MsgBox Mid$(sTheString, Instr(sTheString, "@") - 1, 1)
    Cheers,

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    May 2001
    Posts
    414
    Thank you Joacim

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