Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CURSORTOXML Question (warning - long message)
Message
From
10/06/2002 13:04:35
Mike Sue-Ping
Cambridge, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00665239
Message ID:
00666615
Views:
33
Thanks for the reply Fabio.

In digging into the problem some more, I discovered that in order to make a grid control (not VFPs) recognize an ADO recordset from ADOXML, I had to modify the CURSORTOADOXML() class. In particular, I had to change Rick's code as follows:

...
CASE lcType = "N"
...
s:datatype dt:type='r4'
...

The original code had dt:type='number' and for some reason, this caused the values of the column to appear as all zeros (0) even though the actual values are all non-zero!

I don't really know why, but, type=r4 did the trick.

Mike.


>Hi Mike,
>
>wwXML's CURSORTOADOXML() is supposed to generate an XML equivalent to the one ADO generates. The fields of type "i8" are created for Currency fields, so you have to guarantee that your cursor has a field of type "Currency" in order to it be mapped as type "i8" in the resulting XML.
>
>HTH.
Previous
Reply
Map
View

Click here to load this message in the networking platform