I thought that's what I did. I set the value to the controlsource (MyTable.Name) then called the Refresh. I have never needed to use SetFocus before to update a value.
>Jay,
>
> If you want textbox with binding to any source, you must
>1) call his method SetFocus() - then VFP write value to (ControlSource)
>2) set value to (ControlSource) and call method Refresh()
>
>Your original technique is for nonbinding objects.
>
>MartinJ
>
>>MyTable.Name
>>
>>>Hi Jay,
>>>
>>>What is controlsource of textbox?
>>>
>>>MartinJ
>>>
>>>>Very simple form that has a grid of a local table. As I move through the grid, the AfterRowColChange has this:
>>>>
>>>>
>>>>ThisForm.txtName.Value = MyTable.Name
>>>>ThisForm.txtName.Refresh
>>>>ThisForm.Refresh (just for the hell-of-it)
>>>>
>>>>
>>>>But the value does not change. I'm sure it's simple. Too little sleep, not enough coffee I guess.