Getting String Values After a sentence or text

Hi all,

my csv
ex

and linq

i’m calculation how many of Kandilli does have but the program output is 5. I want to know if i write “Kandilli” it should brings equal or close ones. The all data in 1 column. Program should calculate these datas to.

Thanks.

Have you tried Contains() instead?

.ToString.Contains("Kandilli")

1 Like

contains returns as a boolean my assign act is integer.

I mean in the Linq expression:

Excel_CSV.AsEnumerable.Count(Function(r) r.Item("Semt").ToString.Contains("Kandilli"))

1 Like

ok i did wrongly. and it worked

Thanks

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.