Welcome! Log In Create A New Profile

Advanced

Walking through Object Collections

Posted by Michael Drechsel 
Michael Drechsel
Walking through Object Collections
October 04, 2008 01:22PM
Hi,

after my post from yesterday and many tests I am afraid, thats impossible to access a member of a object collection with windev ?!

In VFP I can do something like this:

objWMIService = GetObject("winmgmts:\\" + strComputer + "\root\cimv2")
colItems = objWMIService.ExecQuery("Select * from Win32_Process",,48)


FOR EACH objItem IN colItems
? objItem.name

NEXT


Can anybody tell me a way to do the "For Each" contruct in Windev ?????
I need the "objItem.name", colItem is a Collection of Objects.


Regards Michael
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: