syangloo
Your idea certainly works but leaves a large gap between the first number and the decimal point, the gap closing up as you enter more numbers and disappearing when you key in the decimal point.
Apart from being unsightly, this gap might confuse inexperienced users.
You can offer users a choice, selectable by Checkbox for the whole form, of automatic decimal point insertion, as per either of the two earlier posts of Aug 10, or FoxDev's solution, which is direct and unambiguous.
The automatic decimal point insertion code was developed to speed up data entry.
In THISFORM.TextBox.When event put:-
IF THISFORM.chkAutoDecimal.Value = 1
[tab]THIS.InputMask = [999999999]
ENDIF
In THISFORM.TextBox.Valid event put:-
IF THISFORM.chkAutoDecimal.Value = 1
[tab]THIS.InputMask = []
[tab]REPLACE TABLE.amountdebt WITH TABLE.amountdebt /100
ENDIF
Chris