1. EditText Masking
- Posted by Rad <radhx at rediffmail.com> Jul 10, 2006
- 559 views
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.
2. Re: EditText Masking
- Posted by Derek Parnell <ddparnell at bigpond.com> Jul 10, 2006
- 556 views
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
3. Re: EditText Masking
- Posted by your average Joe <spent_memory at hotmail.com> Jul 10, 2006
- 559 views
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