Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TableRevert Not working when code called from keystroke...
Message
From
20/04/2000 12:00:23
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
TableRevert Not working when code called from keystroke...
Miscellaneous
Thread ID:
00361846
Message ID:
00361846
Views:
57
I have a problem, where I am calling TableRevert(.T.) on a remote view (table buffering is set to 5) in the click method of a button. When I use the mouse, everything works fine.

I have a ON KEYLABEL CTRL-Q THISFORM.bn_cancel.Click()

When I use the keyboard to call the Click method, the tableRevert works just fine, but right after that the view cannot be requeried because FoxPro says the view has changed.


When I put a SET STEP ON right before the requery, I look at GETFLDSTATE(-1) and it shows that field no. 6 has changed. Field number 6 is not used in the form or code anywhere. When I delete the field from the remote view, the problem occurs again on field 6, even if the field is now different.

If I put a SET STEP ON right after the TABLEREVERT(.T.), and step through the code, the view does not become modified and the requery works.

I was wondering if anyone has had this problem also.

Thanks.

Rob.
Next
Reply
Map
View

Click here to load this message in the networking platform