Hi Pablo....
The easiest solution to this problem is to use a "place-holder" cursor. Here is some sample code:
Create Cursor cFoo ;
(foofield c(10))
This.Parent.grdfoo.Recordsource = "cfoo"
set datasession to 1
for x = 1 to 1000
next x
set datasession to 2
This.Parent.grdfoo.Recordsource = "foo"
What is going on here??? Before going to another datasession, I create a cursor with one field and no records. I assign the recordsource property of the grid to that new cursor. I then go to antother data source, do stuff, and then come back. When I come back, I re-join the grid to its original cursor......
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement