Using the Process Analyst > Process Analyst for Developers > Automation Model > ICommandSystem._NewEnum [Property][Get]

ICommandSystem._NewEnum [Property][Get]

This allows "For... Each... Next" integration in VB.

Calling Syntax

This example assumes there is a valid CommandSystem object as retrieved from a Process Analyst. (for example, VBA: ProcessAnalyst.CommandSystem). This property is not applicable to Cicode.


Sub Example(CommandSystem As Object)
Dim command As Object
Dim count Object
`Using Property
For Each command In CommandSystem
count = count + 1
Next command
End Sub