CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Threaded View

  1. #1
    Join Date
    Oct 2008
    Posts
    19

    Exclamation manipulate system::string / string^ [resolved]

    Ok,

    i get the path of a file from an openfiledialog and assign it to string^ path.

    so the string may contain for example...: c:/folder/example.mp3

    from my knowledge you cannot manipulate a string but make a new one with your desired changes so ...

    i want to remove everything before the last '/' and better yet, remove the last '/' as well

    so i would be left with example.mp3

    would i use the trim method?

    if so please explain how to do so.

    thank you very much.
    Last edited by Dj_Saturn; December 27th, 2008 at 09:11 PM. Reason: resolved

Tags for this Thread

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

Featured