Joseph Longo
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.
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(commaSep arator);
for (int i = 0; i < EQCast.Length; i++)
{
Console.WriteLine("*****", EQCast[i]);
}
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.
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(commaSep
for (int i = 0; i < EQCast.Length; i++)
{
Console.WriteLine("*****",
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.