Results 1 to 2 of 2

Thread: Cutting off the strings

  1. #1

    Thread Starter
    Addicted Member AmmerBow's Avatar
    Join Date
    Sep 2000
    Posts
    195
    I would like to know how to cut up strings. Can this be done?

    lets say that a user enters a full path and file name into one textbox.

    The textbox saves it to the database.

    I want to cut off the path and end up with just the file name or wild card. how would i do that?

    example:
    c:\windows\dog.exe
    or
    c:\windows\*.*
    or
    \\servername\c$\windows\command.com



  2. #2
    Addicted Member
    Join Date
    Sep 2000
    Posts
    138
    strMyFilename = Mid(strMyPath,InstrRev(strMyPath,"\")+1)

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