Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Window Mgmt Insu. Array convertion
Message
From
13/08/2005 23:11:20
 
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01040674
Message ID:
01040751
Views:
13
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform