Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to put a CURSOR into a GRID ?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00625436
Message ID:
00626161
Views:
19
>>In VFP7, I have a form with a button where the code create a SELECT...INTO CURSOR mycursor READWRITE. How can I take this cursor and put it in a grid that is on the same form ?
>>I know I could use a VIEW but is there a more direct way of feeding a grid from a cursor ?
>>
>>Thanks
>>Eric
>
>try thisform.grd.recordsource=''
> thisform.grd.recordsource='myCursor'
>right after you re-build the cursor.
Thanks Nadya, it worked fine. One problem still remaining: In design mode, I did put the first column as a checkbox but when I change the recordsource of the grid, it doesn't recognize it, it try to put it back as a textbox.
Any suggestions ?

Eric
Eric Crespin
Consultant
PC PLUS Software Inc.
www.pcplus.ca
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform