Quantcast
Channel: Visual COBOL - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4356

RE: Validate e-mail adress

$
0
0

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


Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>