Hi,
I'm using a List(of T) and need to geht the Index of one of the elements.
The Search Predicate as shown on MSDN should look like that:
Isn't it possible to handover the IDToFind as a parameter like:Code:Private Function FindID(ByVal bk As Book) As Boolean If bk.ID = IDToFind Then Return True Else Return False End If End Function
Code:Private Function FindID(ByVal bk As Book, ByVal IDToFind as Integer) As Boolean




Reply With Quote