General information
Title:
Problem with cursorToXml function
I am new to XML. Having a problem with a simple routine. I am using vfp7, sp1 installed. What is wrong with the following simple code. It executes, but does not populate the target xml file:
*** create cursor
CREATE CURSOR Cars (Make C(15), Model C(15), Year I, BuyDate D)
INSERT INTO Cars (Make, Model, Year, BuyDate) ;
VALUES ("Pontiac", "GTO", 1968, {^1995-07-01})
INSERT INTO Cars (Make, Model, Year, BuyDate) ;
VALUES ("Chevrolet", "Camaro", 1970, {^1992-05-01})
*** use CURSORTOXML() to create an XML doc
SELECT Cars
*browse && cursor does populate
=CURSORTOXML('Cars', "c:\data2\TargetFile.xml") &&, 1, '1' , '' , '',4 + 2)
* args give me an error: "function argument value type or count not valid"
MODI FILE c:\data2\TargetFile.xml && TargetFile.xml does not populate, file empty
Thanx ahead of time, Vince
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only