realbasic-nug
[Top] [All Lists]

Re: Numeric editfield

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Numeric editfield
From: Ronald Vogelaar <rovo at l4a dot info>
Date: Sun, 30 Jan 2005 08:17:07 +0100
Delivered-to: realbasic-nug at lists dot realsoftware dot com
On 1/30/05 3:27 AM, "Phil M" <phil at mobleybros dot com> wrote:

> *This message was transferred with a trial version of CommuniGate(tm) Pro*
> On Jan 29, 2005, at 5:18 PM, Joseph J. Strout wrote:
> 
>> Can somebody explain to me why the Mask property won't work for this?


Mask="9"
For i = 1 to 7
      mask= mask+mask
   NEXT

Mask=mask+"."+mask

EditField1.mask=mask

That enough precision for yuh? This should give 128decimals before and after
the dot.

Keep smilin'

Ronald Vogelaar
http://www.rovosoft.com

> 
> He wants a single decimal point, but the number of digits before and
> after the decimal may vary.  The problem with the Mask is that it can
> be trial and error before you get exactly the right combination for the
> task.  I think that this is more of a documentation issue and not
> anything specific with the feature.  It would be *very* nice to have a
> variable length example in the documentation instead of just the fixed
> telephone and social security examples.
> 
> For this task, set the Mask property using the string:
> 
>     "9999999.9999999"
> 
> The "9" refers to an optional digit.  So you can enter up to 7 digits
> before the required decimal (in this example) and then another 7 digits
> after the decimal.  If you enter 3 digits before the decimal, you still
> only get 7 digits after the decimal because of the way this mask
> property works -- so make sure you have enough precision for the task.
> 
> _______________________________________________
> 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>

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