Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can I get a cursor from another form?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00187252
Message ID:
00187274
Vues:
18
>Why are you resetting the grid after calling the Print form? Resetting the >RecordSource will re-set any columns you have setup, so you'll get that
"Unknown Member.." error. I think you said you know that one... Do you set >RecordSource to the cursor name again?

I don't want to reset the grid, but it is just empty, after I called the other form. I re-set the grid with two methods, one where a new cursor is created (it is customized by filter options the user can make in opg's) and then a FillGrid() method is called, where all clm's are filled. This works fine, because I always set the Recordsource to "" before calling the 'FillGrid()' method.
In another form it is similar, where I call a report direct where also a cursor is the recordsource from a grid. If the report preview is running, the grid is empty (white, blank!). After the report is closed, the grid fills again, also with a fillgrid() method, but without problems. The difference is, that I made there a cursor from the cursor, to avoid this trouble.
I did not find out, why a grid behaves this way.
Christian Isberner
Software Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform