7
I have a string in this format:
string valores = "Numero1#Numero2#Numero3#Numero4#";
How do I tell it in an array of integers to get it:
int Numero[1] = Numero1;
int Numero[2] = Numero2;
int Numero[3] = Numero3;
int Numero[4] = Numero4;
I tried something like this but it didn’t roll:
cod_cg_meta_periodo.Split("#",System.StringSplitOptions.RemoveEmptyEntries);
How did it not happen? It was wrong? It gave an unexpected result?
– Oralista de Sistemas
Error appeared Error 64 The best overloaded method match for 'string.Split(params char[])' has some invalid Arguments
– Joao Paulo
Your call does not work because the first parameter must be an array of chars, not a single char.
– Miguel Angelo
I edited my answer to exemplify the correct use.
– Miguel Angelo
Only one question @Joaopaulo is a string array so ?
– user6026