Hi all, how can I count the number of times a character is found in an array? I am setting this as a condition for my If loop. I tried
Array.GroupBy(Array(index)).Count < 4 but it returns an error

Hi all, how can I count the number of times a character is found in an array? I am setting this as a condition for my If loop. I tried
Array.GroupBy(Array(index)).Count < 4 but it returns an error

@shhhiying Welcome to the forum
to the used groupby a not valid lamdba expression (method argument) was passed.
Just let us know the array content with some sample data and the char to check for. Based on this we can help you. In the meanwhile maybe following helps:

Or

