realbasic-nug
[Top] [All Lists]

Re: Numeric editfield

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Numeric editfield
From: CV <atauqua at hit dot net>
Date: Sun, 30 Jan 2005 14:07:51 -0600
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]>
It looks like a mask along the lines of "&9999999999999999.9999999999999999e&999" might serve well for entering numerical data (ie., real numbers that will be processed as doubles, for example).

I'm seeing a major problem, however, when a user attempts to insert an invalid character within an existing valid entry. This results in a deletion of all the valid text to the right of the attempted entry. I'm not able to trap that in the ValidationError event, as the deletion seems to have been completed before the event fires, in this case.

Another inflexibility(?) is that the "." (and the "e") are formatting literals within the string of optional characters, in the sense that these characters will be automatically entered when their "turn" arrives, whether the user wants them or not.

Jack


On Jan 29, 2005, at 7:18 PM, Joseph J. Strout wrote:

Can somebody explain to me why the Mask property won't work for this?

Thanks,
- Joe


_______________________________________________
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>