Can we add two where conditions for an INteger List LINQ

ArrayLINQ.AsEnumerable.where(function (x) cint(x)> 0).toarray and ArrayLINQ.AsEnumerable.where(function(x) CInt(x)<12).toarray

seems above code is not correct, i am trying to get numbers >0 and numbers less than 200

can anyone correct it

Hi @devasaiprasad_K

Try this

resultArray = ArrayLINQ.AsEnumerable().Where(Function(x) CInt(x) > 0 AndAlso CInt(x) < 200).ToArray()

@devasaiprasad_K

Assign activity:
filteredArray = ArrayLINQ.AsEnumerable().Where(Function(x) CInt(x) > 0 AndAlso CInt(x) < 200).ToArray()

Hi @devasaiprasad_K

Try this:

ArrayLINQ.AsEnumerable().Where(Function(x) CInt(x) > 0 AndAlso CInt(x) < 200).ToArray()

Regards

1 Like

Hi @devasaiprasad_K

resultArray = ArrayLINQ.AsEnumerable().Where(Function(x) CInt(x) > 0 AndAlso CInt(x) < 200).ToArray()

Hope it helps!!

not sure the same code did not worked… anyways it popped the result now

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