Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why can't I TABLEREVERT() from menu?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00097852
Message ID:
00098090
Views:
28
>>I have a standard toolbar and menu for my app. The toolbar has a Revert button and the menu has a Revert pad, both of which run the active forms RevertRec custom method. If I use the toolbar the record reverts, if I use the menu the record doesn't revert. Why is this happening? TIA
>
>Colin, how do you call your form method from the menu?
>Did you try _screen.activeform.revertRec() ?

Discovered something interesting. The form in question was using a view set to optimistic row buffering. On a hunch I changed it to optimistic table buffering and now everything works fine?!?! This next part is part statement and part question and I would like others input:

Using row buffering the toolbar revert button worked because a toolbar can never receive focus but the menu pad didn't because something behind the scenes is issuing an automatic TABLEUPDATE() between control going from the form and the menu. Is this statement generally true? Does anyone have anything to add or can explain the why's and wherefore's of why this happens?
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada

cmagee@metroland.com

Never mistake having a career with having a life.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform