dc

dc

  • 0
  • 663
  • 0

vb.net 2010 edit

Oct 26 2017 4:55 PM

In a vb.net 2010 application, I have the following code setup so far:

Dim _dtEmailaddress As DataTable = SelectEmailAddress(_dtPersonID(0)("SPA_PersonID"))
Dim _email As String = String.Empty
If _dtEmailaddress.Rows.Count > 0 Then
If IsDBNull((_dtEmailaddress(0)("email"))) Then
_letter = _letter.Replace("&SPA_EMAIL.EVAL", "")
Else
_letter = _letter.Replace("&SPA_EMAIL.EVAL", _dtEmailaddress(0)("email"))
End If
End If

I need to be able to check for email addresses that end with '@opd.org' in the reference called _dtEmailaddress(0)("email").

Thus can you show me the vb.net code so I would know how to use only email addresses that end with '@opd.org' in the ((_dtEmailaddress(0)("email")) field ?


Answers (1)