Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Updating form object values moving through grid
Message
From
20/07/2006 07:47:48
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01137977
Message ID:
01137982
Views:
15
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform