PDA

View Full Version : Array of value (WXP-Pro)


nyuk
04-20-2004, 02:52 AM
Sorry for the novice scripter question:

how I can get the value of Qualifier of method of object CIM, if this value is Array ???

I do:
...
for each colMethods in Process.Methods_
WScript.Echo " " & colMethods.Name

IF colMethods.Name = "Create" Then
WScript.Echo "Just qualifiers for Method: "
WScript.Echo " " & colMethods.Name
for each Qualifier in colMethods.Qualifiers_
WScript.Echo " " & Qualifier.Name & ": " & Qualifier.Value
next
End If
next

If Qualifier.Value is array then Error! ((

dineshcooper
04-23-2004, 01:17 AM
Hi

if I'm not mistaken this should work

If TypeName(Qualifier.Value) = "Variant()" Then .....

Hope that Helps
Cheers
Dinesh