hi,
i have a string which is return by the sqlserver 2005, which contains a "-" (separator), now i need to split this string, but i occurs error.
string[] a ; // a = "Code - N/A" this is returned by the database
string ret = "";
a = ret.Split(Conve rt.ToChar('-'));
ret = a[1]; //error
will you please tell me the solution.
i have a string which is return by the sqlserver 2005, which contains a "-" (separator), now i need to split this string, but i occurs error.
string[] a ; // a = "Code - N/A" this is returned by the database
string ret = "";
a = ret.Split(Conve rt.ToChar('-'));
ret = a[1]; //error
will you please tell me the solution.
Comment