0
Being a string
in the following format:
string valores = "valor1#valor2#valor3";
I wish to store the values separated by #
in a array
, having such a result:
teste[0] = valor1;
teste[1] = valor2;
teste[2] = valor3;
Anyone can help?
Note: I looked for some solutions in this forum but I was not successful.
has used var
var teste = valores.Split("#")
?– novic
friend, if I pass this line more than once I increase the number of positions of my "test" array automatically?
– Felipe Mateus
explain me to pass more than once, if you put only this line is generated only the values that the
Split
find, not understood several times.?– novic
worked here friend, I managed to make work this split(). Thank you!!
– Felipe Mateus