I am glad someone can see my problem! but the gotfocus trick did not work. As soon as I enter a number the zero appears and does not disappear until I enter enough numbers (3) to reach the comma in the inputmask(999,999). This only happens once and only if I tab out of the textbox. if I go back to enter another number the entry works as expected. I think you are right, its a BUG! frustrating.
>
>datatype is n(6,0). I discovered that the inputmask(999,999) is causing it.
>Why would that affect it? remember enter only 1 to 3 numbers, 4 numbers is fine.
>>
>I see it now.
>This is a bug.
>
>with
>
>inputMask = '999999'
>inputMask = '999|999'
>
>
>try with :
>
>* set SelectOnEntry = .F.
>* on textBox gotFocus
>THIS.Sellength = len(m.this.text)
>
>but this not remove the problem with the Mouse setfocus.
>
>Fabio
Extreme Programming = Plan -> Design -> Code -> Test