Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Vars - method of object PmgObject

Description:
Returns the variable of the Pmg object. See Variables of the Pmg object.
Syntax:
Object Vars(String sName)
Calling:
oItem.Vars(sName).Value = x
Parameters:
sName(String) Name of the Pmg object variable (case sensitive text)
Note:

The Pmg object variables are defined on the "Variables" page.

This method is also functional in Web panels.

 
Tip! Pmg object variable can also be obtained directly by the Items method by using the extended path input via #vars.
Example:
JavaScriptVBScriptSelect and copy to clipboard

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

//Setting the color in the Colorvar variable of the Color type.
oItem.Vars("Colorvar").Value = "#ff0000";

//Setting the font in the Fontvar variable of the Font type.
oItem.Vars("Fontvar").Value = "PmSmallBold";

History:
Pm8.02.00: Changed to object.
PROMOTIC 9.0.8 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