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: "Joseph J. Strout" <joe at realsoftware dot com>
Date: Wed, 30 Jan 2002 10:41:30 -0800
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        |
`------------------------------------------------------------------'


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