Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Refreshing cursors in a GRID
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00107566
Message ID:
00107848
Vues:
17
>I've seen a problem similar to this. IF you are re-creating the cursor each time you switch the year, odds are that's your problem. If in your grid you have the RecordSource for the grid itself and the ControlSources for the columns setup as a cursor that's getting recreated you'll have this problem. What happens is when FoxPro re-creates the cursor there must be a moment it time that the cursor doesn't exist at all, thus freaking out the grid becuase now it's RecordSource and ControlSources don't exist at all. The trick I've used in the past (I admit it's a bit cheezy, but it works) is in the code to change all the controlsources and RecordSource to equal '' (blank), then recreate the cursor, then change all the ControlSources back to what they were.

Yes I see your point. I had come up with a similar idea after much time and trial. So much for RAD. I will try your idea about the 'blank'.

Thanks
Bernard
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform