Results 1 to 3 of 3

Thread: HELP!! (AsAp)

  1. #1

    Thread Starter
    Addicted Member Stick's Avatar
    Join Date
    Aug 1999
    Location
    Iowa
    Posts
    152

    Post

    I have a String of text that changes everytime i use it But i Need to Cut the String Down>!!
    The Sting is C:\somthing\somethingelse\File.??
    Is there a way to get EVERYTHING after the LAST \

  2. #2
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844

    Post

    If you're using VB6, you can use the Split function:

    Code:
    dim strTempArray() as string
    dim strFilePath as string
    
    strFilePath = "C:\my\path\to\file.doc"
    
    strTempArray = split(strFilePath, "\")
    
    msgbox strTempArray(ubound(strTempArray))
    Tom

  3. #3

    Thread Starter
    Addicted Member Stick's Avatar
    Join Date
    Aug 1999
    Location
    Iowa
    Posts
    152

    Post

    THANK YOU ! !
    Thanks Very Much!

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