Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TABLEUPDATE problems with the Toolbar
Message
From
02/02/2000 23:21:25
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00326380
Message ID:
00326547
Views:
22
Hi Jeremiah,

I think what's happening is that the data from the current control on the form is not being updated. This is because hitting a toolbar button never fires the lostfocus of the control, thereby never updating the controlsource. You have to force the lostfocus with _SCREEN.ActiveForm.ActiveControl or do a REPLACE on _SCREEN.ActiveForm.ActiveControl.Control source with Value.


>Recently I posted a message describing problems issuing a TABLEUPDATE command from a toolbar in VFP 3. I've narrowed down the problem, and would appreciate any feedback.
>
>The setup:
> Visual Foxpro 3.0
> A formset with two toolbars and several forms
> 5 tables in the dataenvironment. All of them are set to Optimistic Table Buffering
>
>The problem:
> One of the toolbars has a "Save" button which issues a TABLEUPDATE command from the Click method. When I click the button, the TABLEUPDATE command returns .T., but nothing happens. However, if I put the "Save" button on any form in the formset, everything works great. It only stops working when it's on the toolbar. Furthermore, if I activate the method programatically, for example, typing: formset.toolbar.button.click() from the commandwindow, it also works.
>
>I've tried everything I can think of, but the solution still eludes me. Neither the toolbar nor the form are in Private data sessions. Can anybody offer any suggestions?
>
>Thanks in advance for your help
>-Jeremiah
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform