Set oItem = oItem.Items(sPath)
|sPath||(String) Relative or absolute path to the graphic item or its implementation subobject (case sensitive text). |
The path describes the location of the object in the tree structure of the immersed graphic items. Each tree level adress is separated by the / character. The immersed graphic item is referrenced by its name. The superior graphic item is referrenced by .. characters. The absolute path starts with the / character and describes the path to the graphic item from the beginning of the tree structure. The relative path starts with the name of the immersed item or by reference to superior graphic item by .. characters, or by reference to itself ., describes the path to another graphic item relatively to itself.
The immersed implementation subobject (other than PmObject type) is referrenced by # character, followed by the implementation subobject type definition (e.g. #vars). It means that the # addressing leaves the panel graphic items tree and starts to address the implementation subobjects. For example "/text0/#vars/Temperature".
#vars - Enables the variables of the graphic item. The graphic item variable is used as aid for creation of user added item properties.
The variable is an Object type. This object has only a single property Value, representing the value of variable itself. Property access for read and write.
The variable of graphic item can be reached by two ways:
1) From the graphic item by the Vars method. For example
2) By setting the path to the graphic item extended by access to implementation object by #vars. For example
|nAttr||[optional] (Long) Enables to change the behavior of the method.|
0 (default) - default behavior.
1 - when referencing the non-existent graphic item the global error in the INFO system won't be generated.
Set oBar0 = oPanel.Items("Bar0")
oBar0.Value = 100
Set oBar1 = oBar0.Items("../Bar1")