Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help: 'Invalid class string' error when calling XMLToCur
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00610528
Message ID:
00610554
Views:
12
Cheang,

Is it a typo that the variable is named lcXMLData in the first call and lcTodayData in the XMLTOCURSOR() call?

>Hi all,
> When I run the following lines of code in another workstation, I received this error: 'OLE error code 0x800401f3: Invalid class string'.
>
> Please advice. Thank you.
>
>
>
>loSummary = CREATEOBJECT("SummaryData")
>lcXMLData = loSummary.Summary()
>*&
>= XMLTOCURSOR(lcTodayData, "cTodaySummary")  && Error occurred here.
>
>DEFINE CLASS SummaryData AS Session
>
>  PROCEDURE Summary
>       LOCAL lcXML
>            USE "TodaySummary" ALIAS "cToday"
>            = CURSORTOXML("cToday", "lcXML", 1, 0, 0, "1")
>            USE IN "cToday"
>       RETURN lcXML
>  ENDPROC
>
>ENDDEFINE
>
>
>
>Wan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform