Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Recordset to Cursor
Message
From
22/02/2006 12:17:32
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01098156
Message ID:
01098169
Views:
15
This message has been marked as a message which has helped to the initial question of the thread.
>What's the best way known to transform a recordset into a cursor? Say you've got an ADO recordset that is already filled with data and you want to create a Visual FoxPro cursor from that recordset? I'm not looking to execute a SelectCmd on a CursorAdapter by issuing a CursorFill, as I already have the filled recordset object. One way I've found is using the r2dbf.prg that Microsoft released... http://www.kbalertz.com/192692/Converting.Recordset.Cursor.aspx
>
>I guess I'm looking for a slicker way to do this in VFP 9. I'm not sure if there is one, but if there is I'm sure someone on this list will have the answer. Thanks in advance.
xDOM = NEWOBJECT('MSXML.DOMDocument')
oRS.Save(xdom, 1)
XMLTOCURSOR(xdom.xml, "MyCursorName", 1028)
PS: Wouldn't work with all type of ADO recordsets - they don't work by any means anyway.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform