Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is XML installed
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Divers
Thread ID:
00852317
Message ID:
00852354
Vues:
9
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform