본문 바로가기
윈도우프로그래밍

[VB] 구조체 리스트 항목 검색하기

by 바퀴 굴리는 프로그래머 2020. 6. 26.
반응형

[구조체 및 리스트 선언]

Public Structure TestFailed
    Public TestDate As Date
    Public Tester As String
    Public TDK_Item As String
    Public Customer_Name As String
    Public Customer_PartNo As String
    Public LotNo As String
    Public TestItem As String
    Public SampleNo As String
    Public CellName As String
    Public Value As Double
End Structure

Public TestFailedList As List(Of TestFailed)

 

[리스트 검색]

Dim test_failed As New List(Of TestFailed)
test_failed = TestFailedList.FindAll(Function(p) p.CellName.Equals("L11"))

 

 

반응형