Linq Showing error



Need
Error ERROR Validation Error BC30455: Argument not specified for parameter ‘value’ of ‘Public Shared Overloads Function IsNullOrEmpty(value As String) As Boolean’.

The condition should be Where Not String.isNullorEmpty(row(col).ToString)

Thankyou got it thanks

We can rewrite to

(From d in dtData.Enumerable
Let hasBlank = d.ItemArray.Any(Function (x) isNothing(x) OrElse String.IsNullOrEmpty(x.ToString.Trim))
Where not hasBlank
Select r=d).CopyToDataTable

Tried it thankyou for your help

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