Shortcut to 2 Setpes in Text Trim
Dim Filename as string= "(Internet Explorer\Dap)"
VB Code:
Filename = Process.GetCurrentProcess.ToString.Substring(Process.GetCurrentProcess.ToString.LastIndexOf("(") + 1)
Filename = Text.Remove(Text.Length - 1, 1)
is there a way of making this one
Tried this:
VB Code:
Filename = Process.GetCurrentProcess.ToString.Substring(Process.GetCurrentProcess.ToString.LastIndexOf("(") + 1).tostring.Remove(Text.Length - 1, 1)
But it didn't work!!!
Re: Shortcut to 2 Setpes in Text Trim
What exactly are you trying to achieve? Is this an ASP.NET app? You might want to look at things like IO.Path and the String.Trim overload list.
Re: Shortcut to 2 Setpes in Text Trim
No, I wanted the Result of "(Internet Explorer\Dap)" to be "Dap". Just Substring Manipulatioin. Figured Out to use & in the end of the Fisrt one works.