Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XMLToCursor Problem?
Message
From
14/06/2002 17:08:19
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
XMLToCursor Problem?
Miscellaneous
Thread ID:
00668798
Message ID:
00668798
Views:
55
Hi Everybody, I'm using the functions XMLToCursor() y CursorToXML() to generate a COM Component, but I found a little problem with them:


CREATE CURSOR Foo (LeadingZero c(13))
INSERT INTO Foo VALUES('0090810490000')
INSERT INTO Foo VALUES ('0010200520001')

?VARTYPE(foo.leadingzero)
CursortoXML("Foo","lcXMLData")

USE IN "Foo"

XMLtoCursor(lcXMLData,"NewFoo")
?VARTYPE(newfoo.leadingzero)


*** As u can see, the LeadingZero field now is a Numeric type.

I can use PADL() to get back the field as a string (keeping the leading zeros), but I think there shoud be another way to get what I want, wich is, no conversion in field types. My question is: What am I doing wrong?,
Apoya a Visual FoxPro usandolo legalmente
--
¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º
Espartaco Palma Martínez
SysOp PortalFox
http://www.portalfox.com
esparta@portalfox.com
Next
Reply
Map
View

Click here to load this message in the networking platform