--- In [email protected], "brucexs" <bruc...@...> wrote:

> --- In [email protected], "brucexs" <brucexs@> wrote:
 
> >   quit   ;; results in one unrleased handle per run of script
 
> My bug, will post a fix in a day or two.

No rush.  I'm still a bit short of time, but been meaning to test:

  for each within a for each: I have one example of a com collection
  spewing out a com collection, but the inner collection always
  comes up empty.  Which may be real, or may be a problem.

local sWMIservice = ?"winmgmts:{impersonationLevel=impersonate}!\\" ++ 
strComputer ++ ?"\root\cimv2"
objWMIService = com.get_object(sWMIservice)
if (com_status ne "OK")
  quit

local coNwAdptrs  =  com.method(objWMIService, "ExecQuery",  "Select * from 
Win32_NetworkAdapter")
if (com_status ne "OK")
  quit

local objNwrkAdpt strNetworkAddress
for each objNwrkAdpt in coNwAdptrs
 outLine("Adapter Type: " ++ objNwrkAdpt.AdapterType)
 outLine("Description: " ++ objNwrkAdpt.Description)
 For Each strNetworkAddress in objNwrkAdpt.NetworkAddresses
   outLine("NetworkAddress: " ++ strNetworkAddress)
 endfor

endfor


  Then there a call to a function within a for each loop,
  and another for each loop in the called function.

You tested either scenario with e.g. vecs within vec?



Reply via email to