In my particular case, only a 10 digit US phone number should ever be
entered in this field--so the mask works perfectly for this specific use.


-Matt


---------------






> From: Andy Dent <[EMAIL PROTECTED]>
> Reply-To: REALbasic NUG <[email protected]>
> Date: Sun, 5 Nov 2006 12:20:08 +0800
> To: REALbasic NUG <[email protected]>
> Subject: Re: EditField Mask
> 
> 
> On 04/11/2006, at 3:48 PM, Matthew Williamson wrote:
> 
>> I'd like to use an editField mask so the user can enter a 10 digit
>> phone
>> number, and have the formatting done automatically, like so:
>> 
>> (###) ###-####
> 
> I'd just like to point out that this behaviour is almost always a bad
> idea unless you are CERTAIN your users will only ever be entering
> numbers in that format.
> 
> For example, in Australia, we have 7 digit local numbers (used to be
> 6) and put zero in front of the state prefix.
> this is often written as:
> (08) 9203 9626
> 
> However, a mobile number is 10 digits with the leading zero,
> typically written as:
> 0416 249 271
> 
> Internationally, that mobile number is treated in the common style of
> dropping the leading zero and adding the 61 country prefix, which is
> conventionally prefixed with a plus sign.
> +61 416 249 271
> 
> I think it is a more intelligent solution for phone number entry to
> allow people to type them in complete with spaces, dashes (separator
> commonly used), parens... and parse out the meaningful number.
> 
> Your display needs may vary if you are reporting lists of numbers you
> want presented uniformly. However, at the least, you should allow for
> exceptions which contain more or fewer digits.
> 
> Andy
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
> 
> Search the archives of this list here:
> <http://support.realsoftware.com/listarchives/lists.html>


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

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to