Vars - method of object PmPanel

Returns reference to variable of the PmiRoot graphic item in this panel. See Variables of graphic item.

This method is obsolete (but functional). It is not advisable to modify the properties of graphic items directly from outside the panel. A better method can be used inside the panel - PmiItem.Vars.

This method/property/event is considered obsolete and is functional only if the Level of integration of panel viewer and the local application configurator is set to full - FULL access from scripts to the whole application (only for VBScript value and if the Enable multiple opening of local panel configurator IS NOT SET.

Vars(sName As String) As Object
oPanel.Vars(sName).Value = x
sName(String) Name of the variable (case sensitive text)

These variables can be defined in the panel editor in the PmiRoot object on the Variables page.

Note!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.

If it is written to this property and if this property is linked to the data binding PP, AP, SP, OP or GP, then the value is transferred also into the source of this binding.
See also:
Setting the numeric value into the property of the types Double, Integer, Boolean, etc.
pMe.PmPanel.Vars("Numvar").Value = x
Setting the color into the Colorvar variable of the Color type.
pMe.PmPanel.Vars("Colorvar").Value = "#ff0000" 'color setting by RGB String
Setting the font into the Fontvar variable of the Font type.
pMe.PmPanel.Vars("Fontvar").Value = "PmSmallBold"
PROMOTIC 8.3.19 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice