Answer the question
In order to leave comments, you need to log in
Put data from array into string?
I don’t really understand the question, so I apologize in advance for my possible nonsense.
There is a problem, how to put data from the string[] array into a string?
For example array: "John, Alex, Scott"
Tried to do this:
string pname = pnames[0];
and write "John" to pname, but gives the error "Object reference not set to an instance of an object."
Answer the question
In order to leave comments, you need to log in
Object reference not set to an instance of an object
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question