Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ADO and Grids
Message
De
23/09/1998 14:23:57
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00139861
Message ID:
00139980
Vues:
35
>Is it possible to set the RecordSource property of a grid to a ADO recordset object?
>
>e.g.
>oConn = Create('ADODB.Connection')
>oRecs = Create('ADODB.RecordSet')
>oConn.Open('MyADOSource')
>oRecs.Open('select * from MyTable',oConn,3,3)
>
>ThisForm.MyGrid.RecordSource = && /now I'm lost?
>Thanks
>Pete Kan

Nope. But you can convert from the ADO recordset to a VFP cursor and then back again. There is an article on the VFP web site that explains how to do it.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform