string.split

  • Thread starter Thread starter Alberto
  • Start date Start date
String [] ModuleList = Modules.Split(new char[] {';'});

for (int i=0;i<ModuleList.Length;i++)
{
String moduleSource = ModuleList;
}
 
Alberto said:
Can somebody tell an example of how to use the method split?

Yes, of course:

....
string[] strsNames = "Michi;Alberto;Susi;Bill".Split(';');
foreach (string strX in strsNames)
Console.WriteLine(strX);
....

But why not reading the documentation???

i.e.
http://msdn.microsoft.com/library/d...ref/html/frlrfsystemstringclasssplittopic.asp

The .net Framework documentation should ship with the Framework SDK:

http://www.microsoft.com/downloads/...A6-3647-4070-9F41-A333C6B9181D&displaylang=en

Best regards,

Michael
 
Back
Top