I have a function that returns a string array. The string has a name and an ID number, they are separated by a comma.
I cannot for the life of me by using the string methods get to separate the two items.
The string array looks like, the array is called Trainee :-
I want to separate the two using the ',' as the separator because I'm building a drop-down list
I have tried to get the name part by doing
ListItem.Text = Trainee.substring(0,trainee.Length - Trainee.IndexOf(',') - 1);
ListItem.Value=Trainee.substring(Trainee.IndexOf(',') + 1,4);
This doesn't compile, ...