Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Losing selected record when changing forms
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Losing selected record when changing forms
Divers
Thread ID:
00029312
Message ID:
00029312
Vues:
88
I have a form with a big grid. When the user clicks on the grid, the click event has DO FORM myform WITH keyvalue. In the Init of the formset, there is a SEEK keyvalue. The formset has a nav buttonset with its own method which uses SKIP and SKIP-1 to see if it's at the beginning or end, in order to enable and disable the top, prev, next, and last buttons. Here's the maddening thing: when I run it in debug, it performs correctly, but when I run normally it doesn't land on the selected record. When I RESUME from the debug it misses. Then, of course, I can't see the code, but, in my debug window, I can see that the parameter was passed correctly. Any idea what's going on? When I used WAIT WINDOWs instead of the debugger, they told me the record was moved away from the one FOUND by the SEEK during the nav refresh. But when I put a WAIT WINDOW in the nav refresh code (in a class) it again worked correctly. How could use of the Trace window or WAIT WINDOWs affect SKIP?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform