In the following code, I am unsure of how to search through the members of the class to see if there are any matches.
Public Class FormError
Dim Name As String
Dim FormValue As String
Dim hasError As Boolean
Public Sub New(ByVal n As String, ByVal v As String, ByVal e As Boolean)
Name = n
FormValue = v
hasError = e
End Sub
Public Sub Validate()
'Step through all other members of this class to see if any of the formValues match this members formValue
End Sub
Public Class FormError
Dim Name As String
Dim FormValue As String
Dim hasError As Boolean
Public Sub New(ByVal n As String, ByVal v As String, ByVal e As Boolean)
Name = n
FormValue = v
hasError = e
End Sub
Public Sub Validate()
'Step through all other members of this class to see if any of the formValues match this members formValue
End Sub