Code: Alles auswählen
LOCAL aProp := {"BootDevice",;
"BuildNumber",;
"BuildType",;
"Caption",;
"CodeSet",;
...
"Version",;
"WindowsDirectory" }
bCollBlock := {|oService, n| AADD(bItem,{ n,;
PADR(oService:BootDevice ,40, " " ),;
PADR(oService:BuildNumber ,40, " " ),;
PADR(oService:BuildType ,40, " " ),;
PADR(oService:Caption ,40, " " ),;
PADR(oService:CodeSet ,40, " " ),;
...
PADR(oService:Version ,40, " " ),;
PADR(oService:WindowsDirectory ,40, " " ) })}
#IF XPPVER > 01900333
ComEvalCollection( oWmiInstances , bCollBlock )
#ENDIF
der Codeblock bCollBlock funktioniert "so" wie es ist, aber ich möchte den auf Array umstellen
Code: Alles auswählen
bCollBlock := {|oService, n| AADD(bItem,{ n,;
AEVAL(aProp,{|oService,n| (aProp[n]) }) })}