adext
1
Hello
I converted my project from legacy to windows and I am getting an error that I did not have before the conversion.
Here is the expression: DT.AsEnumerable().Where(Function(r) peopleList.Contains(r.Field(Of String)(“Name”))).ToArray()
and here is the error message : “Contains is not a member of String()”
I don’t understand why it wouldn’t be available anymore ? It’s even on official documentation
Thank you
jeevith
(Jeevith Hegde, Ph.D.)
2
Hi @adext,
You could start troubleshooting using these threads to see if you can resolve it yourself
jeevith
(Jeevith Hegde, Ph.D.)
4
@adext
The source of the error is the variable peopleList
which seems to be converted to a string instead of being a List.
What if you try : enforcing list type (peopleList.ToList)
DT.AsEnumerable().Where(Function(r) peopleList.ToList.Contains(r.Field(Of String)(“Name”))).ToArray()
adext
6
no it was not
i added it and it worked! thank you 
1 Like
system
(system)
Closed
8
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.