1. EditText Masking

Hi,

Is there any routine available which can be used to mask EditText control for
accepting amount / percentage / rate fields?

e.g. ##,###,###,###.## or ###.#####

Regards,
Rad.

new topic     » topic index » view message » categorize

2. Re: EditText Masking

Rad wrote:
> 
> Hi,
> 
> Is there any routine available which can be used to mask EditText control for
> accepting amount / percentage / rate fields?
> 
> e.g. ##,###,###,###.## or ###.#####

None that I'm aware of. However, from a good UI point of view, it would be
better to allow the user to enter anything they wanted to and validate it when
they leave the field. You can, at that time, format the input how you wanted to
and display it back at them.

The getNumber() function understands the use of commas and % symbols such that
"98.445%" is returned as 0.98445.

-- 
Derek Parnell
Melbourne, Australia
Skype name: derek.j.parnell

new topic     » goto parent     » topic index » view message » categorize

3. Re: EditText Masking

i just had to use this the other day to make up a quck calculator for converting
the marginal GST (general sales tax) on a point of sale system i was installing,
u can pretty easily manipulate the data you can get fron getNumber

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu