For Each row As DataRow In odds.Select("(OutComeGameDesc = ' FINAL RESULT ' OR OutComeGameDesc = ' Oyun Nəticəsi ') AND (OutComeGame IN ( ' 1 ',' X ',' 2 ')) AND (MAX(EventID))")
But it gives this error:
Cannot perform 'And' operation on System.Boolean and System.String.
How can I fix this?
Best Regards.
Keep your friends close and your enemies even closer
cenk1536
Contributor
2501 Points
2112 Posts
DataTable Select FilterExpression Problem?
May 15, 2012 01:39 PM|LINK
Hi,
I would like to filter a datatable as follows:
For Each row As DataRow In odds.Select("(OutComeGameDesc = ' FINAL RESULT ' OR OutComeGameDesc = ' Oyun Nəticəsi ') AND (OutComeGame IN ( ' 1 ',' X ',' 2 ')) AND (MAX(EventID))")But it gives this error:
Cannot perform 'And' operation on System.Boolean and System.String.
How can I fix this?
Best Regards.
cenk1536
Contributor
2501 Points
2112 Posts
Re: DataTable Select FilterExpression Problem?
May 16, 2012 10:46 AM|LINK
my bad,
It should be as follows:
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: DataTable Select FilterExpression Problem?
May 17, 2012 01:10 AM|LINK
Congratulation!Welcome to our forum next time to share nice soltions as well as ideas……or chat with us about the technology……
Reguards!