Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is XML installed
Message
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Miscellaneous
Thread ID:
00852317
Message ID:
00852354
Views:
8
This message has been marked as the solution to the initial question of the thread.
>How can I detect if the MS XML is installed?
>
>I want to prevent the error "Class definition MSXML2.DOMDOCUMENT.4.0 is not found".
>
>Thanks in advance.
>
>--rab

Raymond,

Use the IsKey() function in the registry class registry object to search for MSXML2.DOMDOCUMENT.4.0 under HKEY_CLASSES_ROOT. Goes like this
SET CLASSLIB TO REGISTRY.VCX
oReg = CREATEOBJECT("Registry")
? oReg.IsKey("MSXML2.DOMDOCUMENT.4.0")
It'll return .T. if it exists.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform