Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Intellisense for GetObject and Collections?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Intellisense for GetObject and Collections?
Miscellaneous
Thread ID:
00668160
Message ID:
00668160
Views:
57
I can get the below code to enumerate my services OK, but I am getting no IntelliSense in my .prg if I type "? oService.".

Is there a trick to getting IntelliSense to work with GetObject and collections, or is it just that WMI is a biotch?
cHost = "."
oWMI = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" + cHost + "\root\cimv2")
colServiceList = oWMI.ExecQuery("Select * from Win32_Service")
For Each oService in colServiceList
	? oService.Name
Next
Next
Reply
Map
View

Click here to load this message in the networking platform