Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to put a CURSOR into a GRID ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00625436
Message ID:
00626161
Vues:
13
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform