>>>Here is textbox.Init method. Do you think the problem may be in there:
>>>
>>>
>>>IF NOT This.SetUserAccess()
>>> RETURN .F.
>>>ENDIF
>>>
>>>IF EMPTY(This.InputMask) AND TYPE(This.ControlSource) == "C"
>>> IF USED(JUSTSTEM(This.ControlSource))
>>> This.InputMask = REPLICATE("X", ;
>>> FSIZE(JUSTEXT(This.ControlSource), JUSTSTEM(This.ControlSource)))
>>> ENDIF
>>>ENDIF
>>>
>>>IF TYPE("This.Parent.BackColor") <> "U"
>>> This.DisabledBackColor = This.Parent.BackColor
>>>ENDIF
>>>
>>>This.SaveOriginalText()
>>
>>a) Is Format empty ?
>
>In my case the Format is $. Setting it to K$ makes no difference.
Is not Format the accused, blank it makes no difference.
The problem is InputMask without the R into Format.
Why put 'S' in Format ?
>>
>>b) Why do you use InputMask XXXX... ?
>>
>>IF EMPTY(This.MaxLength) and USED(JUSTSTEM(This.ControlSource))
>> This.MaxLength = FSIZE(JUSTEXT(This.ControlSource), JUSTSTEM(This.ControlSource))
>>ENDIF
>>
>>
>
>That's the framework code.
It is horrible. Throw it!
>
>>c) but you begin with ?!
>>
>>Hi everybody,
>>
>>We have textboxes on different forms, which seem to exibit the same strange behavior. The textboxes are unbound, have $ as format and 9,999,999.99 in InputMask (set in design time). Now, if you press the Enter, the cursor moves to the next control. You go back to that textbox and press Enter again and one of the digit disappers. In other words, each time you go back to the control and press Enter, one of the digits will vanish.
>>
>>Do you know why is that?
>>>
>Yes. Do you see the same behavior? I haven't yet tested on VFP pure form, I was testing in our application.
I repeat, without R in Format VFP work in this manner if Value is a string.
try with Inputmask='999999999'
what is text.Value's vartype ?