R Reb Sep 9, 2003 #2 String [] ModuleList = Modules.Split(new char[] {';'}); for (int i=0;i<ModuleList.Length;i++) { String moduleSource = ModuleList; }
String [] ModuleList = Modules.Split(new char[] {';'}); for (int i=0;i<ModuleList.Length;i++) { String moduleSource = ModuleList; }
M Michael Kremser Sep 9, 2003 #3 Alberto said: Can somebody tell an example of how to use the method split? Click to expand... 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
Alberto said: Can somebody tell an example of how to use the method split? Click to expand... 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