realbasic-nug
[Top] [All Lists]

Re: Numeric editfield

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Numeric editfield
From: Phil M <phil at mobleybros dot com>
Date: Sat, 29 Jan 2005 18:27:43 -0800
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <20050129151617 dot 11096 dot qmail at web50908 dot mail dot yahoo dot com> <640F5B02-7225-11D9-876F-000393C6C4C4 at hit dot net> <BA6CDBE4-7253-11D9-BDE9-003065B0ABF4 at mac dot com> <a06200709be21e656641c at [10 dot 10 dot 13 dot 4]>
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?

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>

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