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...
Music Rocks
www.musicreserve.blogspot.comSuccess is 1% Inspiration & 99% Perspiration
God Sometimes Delays His Help to Test Our Faith and Energize Our Prayers
Our Boat May Be Tossed While He Sleeps, But He Wakes Up Before it Sinks.