Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting recordset to Cursor
Message
From
26/09/2002 12:01:06
 
 
To
26/09/2002 11:33:37
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00704721
Message ID:
00704747
Views:
15
Hi!

You can pass disconnect ADO recordset object to client. Then you can work with it as is, or convert ADO recordset to VFP cusor by using latest VFP OLE DB provider (there was a thread about this recently), or by using VFPCOM.DLL (used for VFP6).

>I'm building an n-tier application for a client. They want the business layer of the application to be easily modified into a web-service in the future. Consequently, I'm using only XML to move data from the business layer DLL to the client. I've built a process where this DLL stores data from an OLEDB data source in the form of an ADO Recordset. It then stores the recordset, using the Save method of the recordset, as an XML file. The XML file is then read and stored as a string in a property on the DLL which the client reads. I then use XMLTOCURSOR to browse the data in the client executable. What I'm finding is that not all of the fields are being converted into the cursor because the schema that is saved with the recordset has data definition values like this:
>1. dt:type='i2'
>2. dt:type='ui1'
>The XMLTOCURSOR code ignores the fields that have these datatypes. If I convert the values to dt:type='int', then they are converted. I could use STRTRAN to fix this, but that seems like a huge kluge. What am I missing? Is there a better way to do this?
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform