Count of Variable value


How to count the given variable name value?

Hi @saileela

Assign -> Name = "saileela"
Message Box -> Name.Length

Regards

@saileela

Name.Length or name.count will give that

And one issue in the screenshot you gave is after toupper you are checking with a small a …and not capital A

Cheers

I am assuming you want to count number of occurrences of alphabets. If yes, try below approach:-
name.ToUpper.Split("A"c).Length-1

Hi @saileela

If you want the count of a then use the below syntax:

Assign -> Name = "saileela"
Message Box -> Name.Count(Function(c) c = "a"c)

Regards