I have a list that holds sturctures. So each element of the list consist of fields. Is there a way to use contains method to look directly for a specific field value?
If yes may somebody give an example? Thank you so much in advanced.
I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson
Dim TmpFruit As New Fruit
TmpFruit = FruitBowl.Find(Function(x) x.Color.Contains("Red"))
If TmpFruit.Color Is Nothing Then
MsgBox("nothing finded")
End If
May you explain me what exaclty does Function(x) please? I didn't created any function and it worked!!! So what exactly does it do?
Thank you so much in advanced.
I found about delegates and lamda expressions. So I need to study about them because I'm not familiar with. However, I have almost understood. Thank you so much in advanced. You saved me.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.