>I have a toolbar object also ref'd in app object. A button on the toolbar calls a tablerevert function in the app object for one of my updateable views.
>
>When I call bring up the form and change a field, then undo it with the toolbar button the field doesn't update. But if I add a button to the form and call the app object tablerevert function it does work. It seems to be some scoping thing, but I don't want to place the button on the form, I need to call tablerevert from the toolbar. I'm new at this, so I could be missing something simple! Help!
One thing you might be missing - a ToolBar does not take the focus away from the textbox the user is typing in.
So to force the text they typed to be registered, Windows needs to be told the user has finished typing. This is the same in all windows applications - you will see MS people using TAB before clicking on toolbars in some demos to make sure it works...
In VFP the solution to that is to use _SCREEN.ActiveForm.ActiveControl.SetFocus() to force the update of the value.
I'm not sure form your description if this is what you are seeing or not.
I don't
think it's what you are describing.