I am creating a dynamic array, and getting an error:
Error message: Cannot convert type 'string' to 'string[]'
The code is:
arrTeamMembers += tb.Text;
tb.Text contains values such as Michael | Steve | Thomas | Jeff | Susan | Helen |
I am trying to pass the values from tb.Text to arrTeamMembers. I am NOT trying to split the text.
How can I resolve this error?
arrTeamMembersalready have items in it?arrTeamMembersto the individual values intb.Text? E.g.[Michael, Steve, Thomas, ...]tb.Textthen you need to set it as jdmx and David Menton suggested.