Re: help with a c# strings issue
- From: niran <public.niran@xxxxxxxxx>
- To: programmingblind@xxxxxxxxxxxxx
- Date: Thu, 21 May 2009 22:26:36 +0530
If I get your question correctly,
string part1=uninstall.Split("/".ToCharArray())[0].Trim();
You can get part2 by
string part2=uninstall.Substring(part1.Length).Trim();
Hope it helps
niran
http://nirandas.com
rick watson wrote:
Good morning listers,
I have the following code:
string uninstall = "MsiExec.exe
/X{920D9033-C6FC-4443-BB40-BC06C22133C0}";
part1 = uninstall.Split("/".ToCharArray())[0];
this means that part1 is: MsiExec.exe
what code is necessary to get part 2 (the part of the string after
part 1?
Having a brain burp this morning…
Thanks
Rick
__________
View the list's information and change your settings at
http://www.freelists.org/list/programmingblind
Other related posts: