Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
C0000005 Error
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00205610
Message ID:
00205663
Vues:
19
>I made a trace and I can see that VFP crash when after create a cursor via SQL I assign the cursor name to oGrid.RecordSource property.

You may make your code to work safer if you unlink grid from data before making any modifications with its recordsource and link it again when cursor is ready:
Grid.Recordsource=""
Select ....
...
Grid.Recordsource="mycursor"
Grid.Refresh

Just try it. This code does not guarantee that everything will look nicely, but at least it should work.
One more tip: it's reasonable to shift focus out of grid before you start rebuilding grid cursor.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform