### Search in a Typed List

Example of searching in a Typed List using the TextField action event (by pressing enter when done).
See B4J HowTo > Lists > Create a sorted Typed List, for how the list is being build.
`Sub Process_Globals
Type ContactType (Name As String, EMail As String, ID As Int)
Private ContactList As List
Private tfSearchName As TextField
End Sub`
`Sub tfSearchName_Action
If tfSearchName.Text.Length = 0 Then Return
For Each ct As ContactType In ContactList
If tfSearchName.Text.ToUpperCase = ct.Name Then
Log("Contact found.")
Exit
End If
Next
Log("Contact NOT found.")
End Sub`

Changed: , Category: Lists, File: T6C215M1576.htm, ID: 1576