General information
Title:
TableRevert Not working when code called from keystroke...
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only