Gets a Boolean, whether the variable was inherited from a public variable. | |
Syntax: | Boolean = object.Inherited |
Description: | Only link container objects inherit public
variables from the link source object. Example: Sub GefObjectVariable_Inherited() Dim oCimObj As GefObject Dim oCimObjVars As
GefObjectVariables Dim oCimObjVar As
GefObjectVariable Dim nI As Integer Set oCimObj = CimGetObject Set oCimObjVars =
oCimObj.Variables For nI = 0 To oCimObjVars.Count -
1 Set
oCimObjVar = oCimObjVars.Item(nI) If
oCimObjVar.Inherited = True Then MsgBox
"The variable " & """" & oCimObjVar.ID & _ """" & " is an inherited variable" Else MsgBox
"The variable " & """" & oCimObjVar.ID & _ """" & " is not an inherited variable" End
If Next nI End Sub |