Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid and command button to save
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00725200
Message ID:
00725208
Views:
8
>Hi
>
>I have one grid and one command button to save .
>
>when user is in grid , and change one field , for example old value is 5 , new value is 10 ; if user make enter ou tab , and after click in command button to save , everything works good .
>
>But if user don´t make enter or tab , and click in command button to save ,
>VFP save in other tables the old value 5 , and not the new value 10 .
>
>
>Help me , please
>
>Thanks
Pedro,
In your save class make sure that the Focus is moved from the current control.
*-- Force the current controls data buffer to update.
If Type("thisform.ActiveControl") = "O"
	thisform.ActiveControl.SetFocus()
EndIf 
HTH
Caroline
Previous
Reply
Map
View

Click here to load this message in the networking platform