realbasic-nug
[Top] [All Lists]

Re: email validating editfield

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: email validating editfield
From: Jerry Fritschle <jerryfritschle@mac.com>
Date: Thu, 26 Feb 2009 00:20:38 -0600
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com
Delivered-to: listarchive@realsoftware.com
In-reply-to: <52A6FD82-F5AC-439B-813F-FD63C6FF3FC6@mac.com>
References: <A899E015-A7B2-413F-9F3C-0C5BDBFE4A6D@torchpublishing.com.au> <52A6FD82-F5AC-439B-813F-FD63C6FF3FC6@mac.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com

On Feb 25, 2009, at 11:46 PM, Jerry Fritschle wrote:

for x as Integer=2 to Position//we're ignoring anything in front of the first dot.

           field=NthField(me.text,".",x)

           validEmailAddress=(len(field)>1 and len(field)<5)

         next
       end if


Realized there's a bug in here, after my head hit the pillow.

You will, of course, want to break out of the loop after the first "false."

OK, I can sleep now.
-----
"Drama is life with the dull bits cut out."
-Alfred Hitchcock

Jerry Fritschle
jerryfritschle@mac.com



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>