Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Window Mgmt Insu. Array convertion
Message
De
13/08/2005 23:11:20
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Divers
Thread ID:
01040674
Message ID:
01040751
Vues:
12
code as under

lcClass = "Win32_Printer"

oWMI = getobject("winmgmts:")

oItems = oWMI.ExecQuery("select * from " + lcClass)
oEmpty = CREATEOBJECT("oEmpty")

AddProperty(oEmpty, cName, vValue)
FOR EACH oProperty IN oItem.Properties_

cName = oProperty.Name

IF oProperty.IsArray
vValue = "[Array]"
ELSE
vValue = oProperty.value
ENDIF
ENDFOR

I Collect Info some WMI Calss.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform