Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning Recordset
Message
 
To
01/10/2002 06:03:00
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00706271
Message ID:
00706282
Views:
31
>>Something like this:
>>
>>oOleDb = CreateObject("OleDbFox.Utils")
>>oRecordSet = CreateObject("ADODB.Recordset")
>>* If cursor name not specified, a cursor in selected area will be used
>>oOleDb.CursorToRs(oRecordSet, "MyCursor")
>>* Now you can return oRecorset to VB
>>
>>Alexander
>
>Excellent, that's as easy as I was hoping.
>
>BTW, any chance of killing the BETA message?

I have already sent an updated version and, I hope, it will be available today or tomorrow.
BTW, if you need a read/write access to VFP cursor through ADO recordset, you could play with DSObject from the same library:
o = CreateObject("OleDbFox.Utils") && to fix a problem with library initialization
oRS = CreateObject("ADODB.Recordset")
oRS.ActiveConnection = "Provider=MSDAOSP;Data Source=OleDbFox.DSObject;"
oRS.Open("AnyOpenedInVFPCursor")
* now you can return oRS
However I have not tested it within COM objects.
Previous
Reply
Map
View

Click here to load this message in the networking platform