newopt44
April 18th, 2001, 01:00 PM
I have a masked edit box that I want to allow end users to enter a value from 0 to 100 percent (database column type = real) i.e. 50 or 45.67 etc...
What format and mask properties should I use?
Thank you in advance!!
vchapran
April 18th, 2001, 02:02 PM
Based on your description, I think you don't need to use MaskEdit control. MaskEdit is used, when the format of data is always the same, and you want to enter 50 or 100, and database contains 50 or 45.67. So, what format is correct? 2 places, 3 or 4? It's better to allow to enter any numeric data and before saving, or after control lost focus, to change data format as required.
Vlad