E
Earl
Anyone know how to get rid of this late binding issue? SalutationList is a
listarray of all salutation objects from a lookup table.
Dim a As Int32 = SalutationList.Count
For a = 0 To a - 1
If IsDBNull(dv.Item(0).Item("SalutationID")) = False Then
'this is the latebinding problem
If dv.Item(0).Item("SalutationID") =
CInt(SalutationList.Item(a).SalutationID) Then
cmbSal.Text = CStr(SalutationList.Item(a).Salutation)
End If
Else : cmbSal.Text = ""
End If
Next
listarray of all salutation objects from a lookup table.
Dim a As Int32 = SalutationList.Count
For a = 0 To a - 1
If IsDBNull(dv.Item(0).Item("SalutationID")) = False Then
'this is the latebinding problem
If dv.Item(0).Item("SalutationID") =
CInt(SalutationList.Item(a).SalutationID) Then
cmbSal.Text = CStr(SalutationList.Item(a).Salutation)
End If
Else : cmbSal.Text = ""
End If
Next