Results 1 to 3 of 3

Thread: Trim letters of a string

  1. #1

    Thread Starter
    Hyperactive Member PITBULLCJR's Avatar
    Join Date
    Nov 1999
    Location
    New York
    Posts
    408

    Talking

    I made my own mp3 player and I am sick and tired of having .mp3 on the end of my songs name. I have a common dialog control that adds the songs to a list box. So is there a way to trim the filetitle of the commondialog control so that it is Metallica - For Whom The Bells Toll instead of Metallica - For Whom The Bells Toll.mp3

    Thank you!!
    Sincerely,
    Chris


    Email: [email protected]
    AIM: KnightsOfTheMoon
    WebPage: http://kom.wicre.com
    ----------------
    VB6 Professional
    Abit ST6-RAID
    1000 MHZ
    512 MB PC133 Ram
    Nvidia GeForce 2 Ultra 64 MB
    Maxtor 81.9 Gig
    Win 98 SE

  2. #2
    Hyperactive Member
    Join Date
    Aug 2000
    Posts
    258
    Try this
    Code:
    Private Sub Command1_Click()
    Dim this As String
    this = "Nameofsong.mp3"
    MsgBox Left(this, Len(this) - 4)
    End Sub
    Visual Basic 6 SP4 on win98se

    QUIT THE RAT RACE BECAUSE YOUR MESSING THE WORLD UP !!!!!

  3. #3

    Thread Starter
    Hyperactive Member PITBULLCJR's Avatar
    Join Date
    Nov 1999
    Location
    New York
    Posts
    408

    Talking Thanks!!

    You are the greatest!!!!!! Thank you so very much!!!!!
    Sincerely,
    Chris


    Email: [email protected]
    AIM: KnightsOfTheMoon
    WebPage: http://kom.wicre.com
    ----------------
    VB6 Professional
    Abit ST6-RAID
    1000 MHZ
    512 MB PC133 Ram
    Nvidia GeForce 2 Ultra 64 MB
    Maxtor 81.9 Gig
    Win 98 SE

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