realbasic-nug
[Top] [All Lists]

Re: Easy way to permit numbers exclusively?

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Easy way to permit numbers exclusively?
From: Norman Palardy <norm at kirais dot com>
Date: Wed, 30 Jan 2002 13:39:21 -0700
But if they enter 100,,000 CDbl won't work

A masked edit field would be nice
One where I could give it essentially an Excel style mask for a field ("#,###.00) or something and it would automatically handle this.
I think there is one from Doug Holton somewhere

On Wednesday, January 30, 2002, at 11:41  AM, Joseph J. Strout wrote:

At 12:35 PM -0600 1/30/02, J Draper wrote:

I have editfield1

I want to do a calculation on amount entered but user likes to enter 100,000

What the easy way to suppress the users comma?

Why would you want to? Why not let the user enter it however she likes, and convert it to a number for your calculations by using CDbl (which is savvy to such things)?

Cheers,
- Joe

-- ,------------------------------------------------------------------.
|    Joseph J. Strout           REAL Software, Inc.                |
|    joe at realsoftware dot com       http://www.realsoftware.com        |
`------------------------------------------------------------------'

---
Subscribe to the digest: <mailto:realbasic-nug-
digest at lists dot realsoftware dot com>
Unsubscribe:
<mailto:realbasic-nug-off at lists dot realsoftware dot com>




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