AndrewMozley
Programmer
After all these years I am trying to get my head round the Inputmask property and possibly the Format property.
What I would like is a text box into which I enter, say, (without quotes) “1234.5”
On leaving the box I would like its value to be 1234.5 and I would like the box to be showing 1,234.50 (in fact a money value, although I do not need the £ sign to be displayed), right-aligned in the text box.
During data entry I would prefer that the text box showed exactly what I was entering; so, if I start entering data at the left of the text box, I would prefer it to look that way, not showing the decimal point until I had entered it. It would also be nice if the text box clears when I start entering data, if that is normal practice
I have tried various options. At present I have Input mask = “999,999.99”, Format “K”. This does indeed select the whole field when the text box gets focus. However when I start entering data, I see that the display shows “1 , .” and this is not what I want. Also, if I start entering “1234.5”, when I key in the decimal point it is ignored . After I have entered the 5 the text box shows “123,45<space>.” And again this is not what I want.
I realise that there are thousands of applications which let users enter numbers quite happily!
Andrew
What I would like is a text box into which I enter, say, (without quotes) “1234.5”
On leaving the box I would like its value to be 1234.5 and I would like the box to be showing 1,234.50 (in fact a money value, although I do not need the £ sign to be displayed), right-aligned in the text box.
During data entry I would prefer that the text box showed exactly what I was entering; so, if I start entering data at the left of the text box, I would prefer it to look that way, not showing the decimal point until I had entered it. It would also be nice if the text box clears when I start entering data, if that is normal practice
I have tried various options. At present I have Input mask = “999,999.99”, Format “K”. This does indeed select the whole field when the text box gets focus. However when I start entering data, I see that the display shows “1 , .” and this is not what I want. Also, if I start entering “1234.5”, when I key in the decimal point it is ignored . After I have entered the 5 the text box shows “123,45<space>.” And again this is not what I want.
I realise that there are thousands of applications which let users enter numbers quite happily!
Andrew