Text box question

jimmyray

Member
Joined
Dec 30, 2009
Messages
14
Programming Experience
Beginner
Hi all,

I am working with an app that has a text box for entering a person's temperature. The mask on it is 999.9 It is later converted to a decimal. problem I am running in to....if the user enters 98 .1 I get an error, but if they enter 98.1 it works fine and adds a leading zero to it. How can I get the text field to show 000.0 when they come to it then no matter if they enter 98 .1 or 98.1 it works. If they enter 98 .1 I need it to shift to the right and then add a space at the beginning or 0.

Thanks.
 
Back
Top