The XMLTOCURSOR()function internaly uses MSXML 3.0. Make sure that MSXML 3.0 is installed as a part of your application installation. See
http://fox.wikis.com/wc.dll?Wiki~VFP8RuntimeFiles~VFP for additional info. You can get the latest version of MSXML 3.0 from
http://www.microsoft.com/downloads/details.aspx?familyid=c0f86022-2d4c-4162-8fb8-66bfc12f32b0&languageid=f49e8428-7071-4979-8a67-3cffcb0c2524&displaylang=en>Hi, I created a code that converts a cursor into an xml file and later on convert the xml file into a cursor. I used the VFP Functions CURSORTOXML and XMLTOCURSOR to do the job.
>The code was running perfectly on my computer with Windows XP but when i run the code on a computer having Window2000 Professional, an error occurred when I started to extract the xml file into a cursor using the XMLTOCURSOR() function.
>
>
>Here is the error Message: Ole Error Code 0x800401F3 Invalid Class String
>
>Here is the code to give you an illustration:
>
>cFilename = fullpath(curdir()) + 'Files\tblsysfiles.xml'
>create cursor mycur(myfield C(50))
>Insert into mycur(myfield) values ('MICHAEL')
>cursortoxml("mycur",cFilename,1,512,0,"1")
>xmltocursor(cFilename,'temp',512)
>
>
>Did I miss something that triggered the error? Please Help
>
>
>Thanks in advance...
--sb--