Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CursorToXML()
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
CursorToXML()
Miscellaneous
Thread ID:
00518409
Message ID:
00518409
Views:
39
I'm using VFP 7 build 9147 and I'm trying to get the CursorToXML() fuction to really work. It runs and reports a number of bytes written, but no file is ever created.

I have a form with a listbox listing different databases in the DBC. In the When method of the listbox, I populate to form properties. Then I have a button on the form to create XML file. Below is the code from the button:

[code]

LOCAL mcInputFile,mcOutputFile,lnBytes
mcInputFile=thisform.frmselectedfile
mcOutputFile=thisform.frmoutputfile
IF !USED(mcInputFile)
use &mcInputFile ALIAS &mcInputFile
ENDIF
SELECT &mcInputFile
IF FILE(mcOutputFile)
DELETE FILE &mcOutputFile
endif
lnBytes=CursorToXML(mcInputFile, mcOutputFile,3,"1")
=MESSAGEBOX("The Export has completed, total bytes written="+ALLTRIM(STR(lnBytes)),0,"Output Completed")

[/code]

It runs, just doesn't produce any output. Anybody know what I'm doing wrong?

Kirk
Next
Reply
Map
View

Click here to load this message in the networking platform