Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Vars - method of the PmaPanel object

Description:
Returns variable of the PmgRoot object in this panel. See Variables of the Pmg object.

This method is obsolete (but functional). It is not advisable to modify the properties of Pmg objects directly from outside the panel. A better method can be used inside the panel - PmgObject.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 and if the "Enable multiple opening of local panel" configurator IS NOT SET.

Syntax:
Object Vars(String sName)
Parameters:
sName(String) Name of the variable (case sensitive text)
Note:

These variables can be defined in the graphics editor in the PmgRoot object on the "Variables" tab.

See also:
- PmgObject.Vars (method)
Example:
JavaScriptVBScriptSelect and copy to clipboard

//Setting the numeric value into the property of the types Double, Integer, Boolean, etc.
pMe.PmPanel.Vars("Numvar").Value = 100;

//Setting the color into the Colorvar variable of the Color type.
pMe.PmPanel.Vars("Colorvar").Value = "#ff0000";  //color setting by RGB String in the form "#RRGGBB"

//Setting the font into the Fontvar variable of the Font type.
pMe.PmPanel.Vars("Fontvar").Value = "PmSmallBold";

History:
Pm8.03.00: obsolete
Pm8.02.00: changed to object
PROMOTIC 9.0.15 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