Last post Dec 20, 2018 02:25 PM by rtaVix
Dec 20, 2018 11:40 AM|rtaVix|LINK
Guys, I have the following problem in my code below:
var listWithoutCodBars= listProcInter.FindAll(item.IdDeposit = null);
if (listWithoutCodBars.Count() != 0)
But it says that the item does not exist in context, how could I add this variable?
Dec 20, 2018 12:53 PM|mgebhard|LINK
Item is not defined. Keep in mind, this was discussed in your other thread where you are accessing several objects that are not defined within the event handler.
Perhaps if you post more code we can figure out what item is but most likely you have a design bug.
Dec 20, 2018 01:12 PM|PatriceSc|LINK
var listWithoutCodBars= listaProcInter.FindAll(item=>item.IdDeposit ==
It is an easy way to basically pass "code" as an argument ie here you pass to FindAll the code that this function can use to decide if each item should be part of the returned list.
Dec 20, 2018 02:22 PM|rtaVix|LINK
Hello thank you for contributing again, but the previous topic does not refer to the current problem, but our friend PatriceSc, guided me and I managed to adapt and reoslver the problem, thank you mgebhard!
Dec 20, 2018 02:25 PM|rtaVix|LINK
PatriceSc, thank you very much my friend, I adapted here and it worked, thanks for the explanations, all help is welcome. thank you again!