Count characters the total

helli

i ahve this in the string

output of StringName:
Daniela Sara Hernandez Salas

or in the array:

{“Daniela” “Sara” “Hernandez” “Salas”}

How i can get the total of this , i need for this example counts the characters and i wan to see the

string result = 4

regards

Hi again.

For all lists, arrays, and enumerables you can use .Count() on the end

For example,

stringarray.Count
or
{"Daniela","Sara","Hernandez","Salas"}.Count

Some additional info is that you can use UBound() --upper bound-- around it to find the last index (which is 1 less than the count)… for example UBound(stringarray)

Regards.

1 Like

Hello,

Please check the content of message boxes below :

nameStrings.xaml (7.1 KB)

Hi @solvargas.85,

ArrValue= {“Daniela” “Sara” “Hernandez” “Salas”}

ArrValue.Count.Tostring()

1 Like