Masked Text Box with decimal digit

B

Blue Stallion

I have a masked test box that is bound to a SQL Server field. The SQL Server
field is of type float. The entries for this field will be either two or
three digits left of the decimal and one digit right of the decimal. I have
tried using 000.0, 999.9, ###.#, 099.9, and so on. The problem is that when
I try to enter two digits before the decimal and one one after, when I leave
the field all three digits move to teh left of the decimal point. When
stored to the database it is correctly stored as 31.4, but when displayed in
the field it is 314._. I have tried to enter the number as 031.4 and
<space>31.4, but the same thing happens, the numbers all move to the left of
the field. What should I be using to ensure the digits stay where they are
entered.

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top