Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Record pointer not moving properly
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00942906
Message ID:
00971589
Vues:
20
> After doing this and clicking back on the List tab, instead of the grid being positioned on the record displayed in the main tab, the grid will be on some other record. It's not
>necessarily a record that was previously being viewed on the main tab. As I mentioned before, this has worked perfectly up until the install of VFP 8. In fact, when the client tests on a VFP 7 version of the app, it still works fine.

Lets try to get a handle on the unspoken things: you are not running a framework, but only your own code and no compile/run switches based on version() ? Nothing in the click events ?

>If the code is traced, it works, if the code is not traced it will fail. Has anyone seen anything like this?

Yupp. Debugger changes event orders, since it set focus differently. Best way to combat:
StrToFile() while running normally, usually in xxxfocus(), Refresh() and similar suspects.
Grid and Refresh can be ugly...

You might get lucky with a breakpoint set to recno("YourAlias")=m.gnPreviouslySet and not tracing.

What happens if you .refresh() the grid page before leaving it ? And I'ld put the nodefault directly after the if, not as the last line to be executed - just to be sure it doesn't hamper switching focus.

regards

thomas
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform