Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid losing recordsource and columns controlsource
Message
De
08/12/1999 20:07:36
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00298872
Message ID:
00300705
Vues:
18
>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......

Doesn't it work just by setting the grid's recordsource to "" first? Does for me...
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform