Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid losing recordsource and columns controlsource
Message
From
08/12/1999 20:07:36
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00298872
Message ID:
00300705
Views:
14
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform