Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TableRevert Not working when code called from keystroke.
Message
De
20/04/2000 12:43:31
 
 
À
20/04/2000 12:00:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00361846
Message ID:
00361880
Vues:
17
>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.

You can't use THISFORm in an ON KEY LABEL command. Try using _SCREEN.ActiveForm in place of THISFORM.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform