GefObjectVariable.ID (property)

Gets and sets the ID of the variable.
Syntax: String = object.ID
object.ID = String
Description: If you try to set the ID of this variable to an ID that is already used by another variable in this object, the attempt fails and the variable ID is unchanged.


Sub GefObjectVariable_ID()
    Dim oCimObj As GefObject
    Dim oCimObjVars As GefObjectVariables
    Dim oCimObjVar As GefObjectVariable
    Set oCimObj = CimGetObject
    Set oCimObjVars = oCimObj.Variables
    Set oCimObjVar = oCimObjVars.Item(0)
    MsgBox "The first variable is " & oCimObjVar.ID
End Sub