GefObjectVariables.Count (read-only property)

Gets the number of variables in the collection.
Syntax: long = object.Count
Description: The Count property gets the number of variables.

Example:

Sub GefObjectVariables_Count()
    
    Dim oCimObj As GefObject
    Dim oCimObjVars As GefObjectVariables
    
    Set oCimObj = CimGetObject
    Set oCimObjVars = oCimObj.Variables
    
    MsgBox "The number of variables is " & oCimObjVars.Count
    
End Sub