Link to home
Start Free TrialLog in
Avatar of Joseph Longo
Joseph LongoFlag for United States of America

asked on

c# string handling

i have a comma delimited string being returned from a function.
i can console.writeline the string out... but i just cant seem to get the .SPLIT string function to work.

the Split function won't create the array.
User generated image
code:

                        Ret_CHASSIS = GetChassisbyRFID(Ret_RFID);
                       Console.WriteLine("return Ret_CHASSIS ************ - " + Ret_CHASSIS);
                       char[] commaSeparator = new char[] { ',' };
                       string[] EQCast = new string[3];
                     
                       EQCast = Ret_CHASSIS.Split(commaSeparator);
                     
                       for (int i = 0; i < EQCast.Length; i++)
                       {
                           Console.WriteLine("*****", EQCast[i]);
                       }
ASKER CERTIFIED SOLUTION
Avatar of it_saige
it_saige
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial