Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Variables of the Pmg object

The Pmg object variable is used as aid for creation of user added Pmg object properties.
 
The variable is an Object type. This object has only a single property:
ValueThe variable value. Property access for read and write.
 
Access to the Pmg object variable:
- by the PmgObject.Vars method. For example

oItem.Vars("MyVar").Value = 3.14

- by the identifier #vars.

pMe.Items("/text1/#vars/MyVar").Value = 3.14

 
The variables are used, for example, in the "GP - Data binding to the property of the Pmg object" data binding.
 
The variables can be created in any Pmg object on the "Variables" page.
 
The variables may be of following data types:
- String - there Macro expression can be entered here ($.text, $.par ..)
- Integer
- Double
- Boolean
- Color - Text string of the RGB String type
- Font - text identifier of the font, e.g. "PmMiddle"
 
Data binding in variables:
- In each variable the data binding can be created.
- 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.
 
Preset variables in the PmgRoot object:

In each PmgRoot object, there are always two preset variables:

- BackroundColor: Background color of the panel
- FocusColor: Outline color rendered around the selected Pmg object

History:
Pm8.03.16: Fixed bug: Panel editor - In variable of the Boolean type it was not possible to create data binding (the panel editor failed).
PROMOTIC 9.0.7 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