Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ADO and Grids
Message
From
23/09/1998 14:23:57
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00139861
Message ID:
00139980
Views:
36
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform