Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid losing recordsource and columns controlsource
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00298872
Message ID:
00299612
Vues:
32
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
Fil
Voir

Click here to load this message in the networking platform