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