Information générale
Titre:
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.
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement