Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Updating form object values moving through grid
Message
 
To
20/07/2006 07:37:11
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:
01137981
Views:
14
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.
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform