Validate e-mail adress

Hello,

How can validate a TEXT field if the email adress is in the correct format? (For example: myfriend.gmail.com is invalid)
Thanks
Alberto Ferraz
Parents
  • This is a possible solution:

              declare MailAdr as type System.Net.Mail.MailAddress.

              declare expMess as type System.Exception.

              try

                 set MailAdr to new System.Net.Mail.MailAddress(textBox2::Text)

              catch expMess

                 invoke type System.Windows.MessageBox::Show(expMess::Message, "MailAddress invalid")

              end-try.

    Werner Lanter

Reply
  • This is a possible solution:

              declare MailAdr as type System.Net.Mail.MailAddress.

              declare expMess as type System.Exception.

              try

                 set MailAdr to new System.Net.Mail.MailAddress(textBox2::Text)

              catch expMess

                 invoke type System.Windows.MessageBox::Show(expMess::Message, "MailAddress invalid")

              end-try.

    Werner Lanter

Children
No Data