Alex,
See if
Re: Enter key zeros out edit change to textbox Thread #
935276 relevant to your problem.
>This is a codemine text box, and I wonder if this behavior is specific to codemine or to all of VFP. The undesirable behavior remains if I set This.lNativeBinding = .T., BTW.
>
>A textbox is bound to a numeric value, with format = 'L' and inputmask = '99999'.
>
>If user clicks and inserts a digit, or changes a digit and then tabs out of field, textbox.value keeps the value seen by user in text box before tab key was hit.
>
>On the other hand, if user taps the Enter key after making the change, texttbox.value takes on the value of the first numbers up to and including the one he changed.
>
>I want textxbox.value to remain identical to what the user sees whether he tabs out or hits enter.
>
--sb--