Results 1 to 2 of 2

Thread: [RESOLVED] [2005] Seperate String (File path/name)

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2005
    Location
    Alaska
    Posts
    435

    Resolved [RESOLVED] [2005] Seperate String (File path/name)

    I bet this was already answered, as it seems like a pretty common problem.

    My program recieves a file path with the name like so:

    C:\Test1\Test2\Cool.res

    How can I split it into an array like this:

    0: C:\Test1\Test2
    1: Cool

    The delimnator is the last instance of the \

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: [2005] Seperate String (File path/name)

    Use the IO.Path class.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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