Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error in Read Events()?
Message
De
02/03/2006 15:22:11
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
01/03/2006 17:07:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Novell 6.x
Database:
MySQL
Divers
Thread ID:
01097701
Message ID:
01101051
Vues:
27
>So the grid having focus when the ZAP occurred might cause an error not then, but later down the road?

Yep, most typically when it tries to refresh and finds itself in a mess.

The way to test for this is to try to set grid's .RecordSource to "" before, or immediately after zapping the table. This will, of course, rebuild the grid to the currently selected alias, but if I remember correctly, your form is already in the process of harakiri at that time, so losing grid's structure doesn't really hurt.

Still, this is all too weird for me - I'm zapping the underlying cursors of my grids quite often, in more than half of my forms, and never had this sort of error. Maybe, just maybe, your grid has a stored recno() of the current record somewhere, and uses that in some of the dynamic* properties?

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform