Results 1 to 9 of 9

Thread: trim 1 character from the left

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    how do I trim the first character from the left?
    NXSupport - Your one-stop source for computer help

  2. #2
    Fanatic Member
    Join Date
    Feb 2000
    Location
    The Netherlands
    Posts
    715
    Do you mean removing the first character from the left?

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    yes
    NXSupport - Your one-stop source for computer help

  4. #4
    Guest
    Code:
    Text1.Text = Right(Text1.Text, Len(Text1.Text) - 1)

  5. #5
    Fanatic Member
    Join Date
    Feb 2000
    Location
    The Netherlands
    Posts
    715
    Code:
    Dim Text As String
    Text = "Hello"
    
    Text = Right(Text,Len(Text)-1)
    Debug.Print Text
    Will display "ello" in the debug window.

  6. #6
    Fanatic Member
    Join Date
    Feb 2000
    Location
    The Netherlands
    Posts
    715
    Sorry Dennis, I didn't read your post.

  7. #7

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    thanks to both
    NXSupport - Your one-stop source for computer help

  8. #8
    Member
    Join Date
    May 2000
    Posts
    63
    text = mid(text,2) will remove the first char from the left

  9. #9

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    thanks
    NXSupport - Your one-stop source for computer help

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