|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
string formattingstring after and including the final "/" character for each line For example: Applications/base/test1 Applications/base/test1/test2 Applications/base/test1/test2/test3 Applications/base/test1/test2/test3/test4 After the deletion would equal Applications/base Applications/base/test1 Applications/base/test1/test2 Applications/base/test1/test2/test3 Any ideas? I was think of counting the number of "/" characters in each line and then deleting the text after the n - 1 character. Or something like that but I didn't know if there was an easier way. "soup_nazi" <bcah***@wfs-ops.org> schrieb Dim s As String = "Applications/base/test1"> I have a one string per line and I want to delete the last part of > each string after and including the final "/" character for each > line s = s.Substring(0, s.LastIndexOf("/"c)) This assumes that there is at least one "/" in the line. Armin
Excel Range will not put data into correct Cell
Best approach - databound controls & ADO.NET Maintaining a response user interface NetUserChangePassword Module not found?? Simple mask Edit for Hours:Minutes Programatic uninstall? OT: Business Objects - what are they and can they contain objects like sockets? Convert Byte() to System.Drawing.Image? Cache problem ADO, DAO or OleDb? |
|||||||||||||||||||||||