Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Losing selected record when changing forms
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
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