peteschulte
IS-IT--Management
Hello Coders,
In debugging the following code, I referred to the Help files, shortened the file name, inspected the file itself -- I'm stuck!
See attachment
Stepping into this line, I got "File does not not exist" -- xmlcontent = FILETOSTR(xmlfile)
Thank you for your help and Happy Coding in 2009!
In debugging the following code, I referred to the Help files, shortened the file name, inspected the file itself -- I'm stuck!
See attachment
Stepping into this line, I got "File does not not exist" -- xmlcontent = FILETOSTR(xmlfile)
Code:
SET DEFAULT TO C:\tempVFP\12-26_reStart
Local lcXML, loXMLAdapter, loXMLTable
Close Tables All
SET STEP ON
xmlfile="C0_5528.xml"
xmlcontent = FILETOSTR(xmlfile)
lcXML = xmlcontent
loXMLAdapter = CreateObject("XMLAdapter")
loXMLAdapter.LoadXML(lcXML,.F.,.T.)
&& XMLAdapter.LoadXML( cXMLDocument [, lFile [, lValidateOnParse ]] )
&& For Each loXMLTable in loXMLAdapter.Tables
loXMLTable.ToCursor(lcXML)
COPY TO (loXMLTable.Alias+".dbf")
&& ENDFOR
SET