Results 1 to 5 of 5

Thread: [RESOLVED] Trimming characters from a string

Hybrid View

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2006
    Posts
    9

    Resolved [RESOLVED] Trimming characters from a string

    If I input the string 2006-03894 from a file, how can I trim the string so that the result is 2006?

    Thank you,

    Ed

  2. #2

  3. #3
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256

    Re: Trimming characters from a string

    Quote Originally Posted by RhinoBull
    Left$() will work:
    Bah! When will the symbols die?
    My evil laugh has a squeak in it.

    kristopherwilson.com

  4. #4

  5. #5
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: Trimming characters from a string

    so will split

    DIm tmp() as string
    tmp = Split("2006-03894", "-")
    Msgbox tmp(0)
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

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