Re: Currency data entry

new topic     » goto parent     » topic index » view thread      » older message » newer message

Thanks Ken,

The routines work just fine but my requirement is slightly different. Maybe, I
should have mentioned "win32lib" and EditText-type control.

What I am looking for is a control that restricts user input to + or -, numeric
digits, and a decimal point. My searches in the Archives and EUforum keep coming
up with post-entry checks, but it would be pretty undignified if the user can
(accidentally) enter alpha characters into a textbox for currency input. My
attempts to monitor/control keyboard input with w32Change keep resulting in "the
choicest abuses" by ex.err as well as a couple of "illegal function" reprimands
by Windows 98SE.

Isn't there something along the lines of ES_NUMBER?

Anando




Kenneth Rhodes wrote:
> 
> Anando Banerjee wrote:
> > 
> > Hi,
> > 
> > How do I set up a data entry field for currency data with 2 decimal places?
> > Commas,
> > though not mandatory, would be gladly welcomed.
> > 
> > EditText with ES_NUMBER allows only numeric digits without decimal points,
> > etc.
> > 
> > Thanks.
> > Anando
> >
> 
> There are two generic programs in the archives. One is called 
> "insert periods"
> and the the other is "insert commas"
> which may be of help:
> <a
> href="http://www.rapideuphoria.com/cgi-bin/asearch.exu?gen=on&keywords=insert+periods+commas">http://www.rapideuphoria.com/cgi-bin/asearch.exu?gen=on&keywords=insert+periods+commas</a>
> 
> 
> Ken Rhodes
> 100% Microsoft Free!
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu