Thanks Terry, that does indeed do the trick.

-Matt


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






> From: Terry Ford <[EMAIL PROTECTED]>
> Reply-To: REALbasic NUG <[email protected]>
> Date: Sat, 04 Nov 2006 00:22:19 -0800
> To: REALbasic NUG <[email protected]>
> Subject: Re: EditField Mask
> 
> 
> On Nov 3, 2006, at 11: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:
>> 
>> (###) ###-####
> 
> You could add the following lines to the GotFocus event of the
> EditField:
> 
>    If me.Text="" Then
>      me.Text="("
>      me.SelStart=me.Text.Len
>    End If
> 
> That should do the trick.
> 
> Terry
> 
> _______________________________________________
> 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