>>May be it's a problem in VFP8 version I'm using, but I can not change the number by typing it in the text portion. It only allows me to type one digit instead of the number.
>
>
>I have no problems with VFP8 also, of course this code will change color at every single keystroke.
I actually updated my reply while you were replying. Somehow your form lets me to type the whole number, while in my test I was unable to type more than one digit. The difference seems to be in thisform.refresh, that you removed.
If it's not broken, fix it until it is.
My Blog